add LIST_DEINIT of bo_list and surf_list 48/139448/3
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 19 Jul 2017 04:20:56 +0000 (13:20 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 19 Jul 2017 06:00:06 +0000 (06:00 +0000)
add the deinitailization of the bo_list and surf_list
at the tbm_bufmgr_deinit.

Change-Id: Idb51566614518e734b785322a22a70c0447a46ad

src/tbm_bufmgr.c

index 3e9790f..105cff3 100644 (file)
@@ -776,6 +776,7 @@ tbm_bufmgr_deinit(tbm_bufmgr bufmgr)
                        TBM_LOG_E("Un-freed bo(%p, ref:%d)\n", bo, bo->ref_cnt);
                        _tbm_bo_free(bo);
                }
+               LIST_DELINIT(&bufmgr->bo_list);
        }
 
        /* destroy surf_list */
@@ -786,6 +787,7 @@ tbm_bufmgr_deinit(tbm_bufmgr bufmgr)
                        TBM_LOG_E("Un-freed surf(%p, ref:%d)\n", surf, surf->refcnt);
                        tbm_surface_destroy(surf);
                }
+               LIST_DELINIT(&bufmgr->surf_list);
        }
 
        /* destroy bufmgr priv */