fix memory leak 68/65568/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 30 Mar 2016 06:50:04 +0000 (15:50 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 11 Apr 2016 02:22:30 +0000 (11:22 +0900)
Change-Id: Ia9f95ec3e26e4ce8bef6319f0e09ed511cdcb322

src/tbm_bufmgr_exynos.c

index 69d8f3f..894b3e5 100644 (file)
@@ -1117,7 +1117,6 @@ tbm_exynos_bo_import(tbm_bo bo, unsigned int key)
 
        ret = drmHashLookup(bufmgr_exynos->hashBos, key, (void **)&privGem);
        if (ret == 0) {
-               privGem->ref_count++;
                return privGem->bo_priv;
        }
 
@@ -1238,7 +1237,6 @@ tbm_exynos_bo_import_fd(tbm_bo bo, tbm_fd key)
        ret = drmHashLookup(bufmgr_exynos->hashBos, name, (void **)&privGem);
        if (ret == 0) {
                if (gem == privGem->bo_priv->gem) {
-                       privGem->ref_count++;
                        return privGem->bo_priv;
                }
        }