Skip to content
Snippets Groups Projects
Commit e5b8a64a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Use right level of indirection when freeing gralloc memory"

parents 9ce2c8eb cee98d7c
No related branches found
No related tags found
No related merge requests found
diff --git a/libgralloc/gpu.cpp b/libgralloc/gpu.cpp
index bd4c248..399520d 100755
--- a/libgralloc/gpu.cpp
+++ b/libgralloc/gpu.cpp
@@ -253,7 +253,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
err = genlock_create_lock((native_handle_t*)(*pHandle));
if (err) {
LOGE("%s: genlock_create_lock failed", __FUNCTION__);
- free_impl(reinterpret_cast<private_handle_t*>(pHandle));
+ free_impl(reinterpret_cast<const private_handle_t*>(*pHandle));
return err;
}
*pStride = alignedw;
diff --git a/libgralloc/gpu.cpp b/libgralloc/gpu.cpp
index bd4c248..399520d 100755
--- a/libgralloc/gpu.cpp
+++ b/libgralloc/gpu.cpp
@@ -253,7 +253,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
err = genlock_create_lock((native_handle_t*)(*pHandle));
if (err) {
LOGE("%s: genlock_create_lock failed", __FUNCTION__);
- free_impl(reinterpret_cast<private_handle_t*>(pHandle));
+ free_impl(reinterpret_cast<const private_handle_t*>(*pHandle));
return err;
}
*pStride = alignedw;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment