diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2016-04-25 13:11:36 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2016-04-25 13:12:05 +0900 |
commit | 3c83d52e2c38af81b45b925d8e8d60b38444b698 (patch) | |
tree | 910a0971bc4a53c730e66ae01859bcdbd33d160b | |
parent | da97a150b570cd934e5ba7bd38eb7ab5881520fd (diff) | |
download | libtbm-3c83d52e2c38af81b45b925d8e8d60b38444b698.tar.gz libtbm-3c83d52e2c38af81b45b925d8e8d60b38444b698.tar.bz2 libtbm-3c83d52e2c38af81b45b925d8e8d60b38444b698.zip |
Fix error handling in surface createsubmit/tizen/20160426.014338accepted/tizen/wearable/20160426.233847accepted/tizen/tv/20160426.233851accepted/tizen/mobile/20160426.233835accepted/tizen/ivi/20160426.233906accepted/tizen/common/20160427.053635
Change-Id: I94fa2fbc7f64331436e6e0069d99da7e3616d46e
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
-rw-r--r-- | src/tbm_surface_internal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 796add8..6aa6c31 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -585,6 +585,7 @@ tbm_surface_internal_create_with_flags(int width, int height, getpid(), __func__, __LINE__); free(bo); pthread_mutex_unlock(&surf->bufmgr->lock); + goto alloc_fail; } bo->ref_cnt = 1; |