From 47099a81d2a3f342bdb7ef11976cd42ca9b45728 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Wed, 23 Dec 2015 20:09:01 +0900 Subject: [PATCH] Fixed bug for checking bos of surface when unref Change-Id: I28fddf9f275fdf462b9a34e39f2d4983fca47228 Signed-off-by: Changyeon Lee --- src/tbm_surface_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index e18ba3c..14b2598 100755 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -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]); } -- 2.7.4