From: SooChan Lim Date: Thu, 29 Apr 2021 07:49:23 +0000 (+0900) Subject: tbm_surface_internal: set an error when the refcnt of a surface is less than 0 X-Git-Tag: submit/tizen/20210531.033615~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99a09b13891da45fd2c77372830185f5996ef206;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_surface_internal: set an error when the refcnt of a surface is less than 0 Only at TW3, we can watch that the refcnt of a surface is less than 0 when we run tbm-haltests all. Change-Id: I614c48c412783bbbe7a21cca905da3440e7057f0 --- diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 79f94a6..90e5222 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -1139,6 +1139,8 @@ tbm_surface_internal_destroy(tbm_surface_h surface) if (surface->refcnt == 0) _tbm_surface_internal_destroy(surface); + else // if (surface->refcnt < 0) + _tbm_set_last_result(TBM_ERROR_INVALID_PARAMETER); _tbm_surface_mutex_unlock(); }