summaryrefslogtreecommitdiffstats
path: root/exynos4/hal/libgralloc_ump/gralloc_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'exynos4/hal/libgralloc_ump/gralloc_module.cpp')
-rw-r--r--exynos4/hal/libgralloc_ump/gralloc_module.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/exynos4/hal/libgralloc_ump/gralloc_module.cpp b/exynos4/hal/libgralloc_ump/gralloc_module.cpp
index f8d92c1..41e381f 100644
--- a/exynos4/hal/libgralloc_ump/gralloc_module.cpp
+++ b/exynos4/hal/libgralloc_ump/gralloc_module.cpp
@@ -398,6 +398,11 @@ sd
ALOGE("%s registering non-UMP buffer not supported", __func__);
}
+ if (hnd->flags & private_handle_t::PRIV_FLAGS_GRAPHICBUFFER) {
+ ALOGD_IF(debug_level > 0, "ump_id:%d %s: GraphicBuffer (ump_id:%d): ump_mem_handle:%08x (ump_reference_release)", hnd->ump_id, __func__, hnd->ump_id, hnd->ump_mem_handle);
+ ump_reference_release((ump_handle)hnd->ump_mem_handle);
+ }
+
pthread_mutex_unlock(&s_map_lock);
return retval;
}