Fixed bug for checking bos of surface when unref 04/55404/1 accepted/tizen/mobile/20151224.001720 accepted/tizen/tv/20151224.001736 accepted/tizen/wearable/20151224.001807 submit/tizen/20151223.112225 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_common/20160104.140200
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 23 Dec 2015 11:09:01 +0000 (20:09 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 23 Dec 2015 11:09:29 +0000 (20:09 +0900)
Change-Id: I28fddf9f275fdf462b9a34e39f2d4983fca47228
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
src/tbm_surface_internal.c

index e18ba3c..14b2598 100755 (executable)
@@ -549,7 +549,7 @@ tbm_surface_h tbm_surface_internal_create_with_flags(int width, int height, int
                surf->bos[i] = tbm_bo_alloc(mgr, bo_size, flags);
                if (!surf->bos[i]) {
                        for (j = 0; j < i; j++) {
-                               if (!surf->bos[j])
+                               if (surf->bos[j])
                                        tbm_bo_unref(surf->bos[j]);
                        }