From: Sangjin Lee Date: Tue, 1 Dec 2015 06:49:15 +0000 (+0900) Subject: drm: fix resource leak X-Git-Tag: accepted/tizen/mobile/20151221.050925~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F53046%2F1;p=platform%2Fcore%2Fuifw%2Fpepper.git drm: fix resource leak Change-Id: Ied296861266fd8479efdf3407ce968cf4a194cca Signed-off-by: Sangjin Lee --- diff --git a/src/lib/drm/drm-common.c b/src/lib/drm/drm-common.c index 6e8ea1b..1eab579 100644 --- a/src/lib/drm/drm-common.c +++ b/src/lib/drm/drm-common.c @@ -246,6 +246,11 @@ pepper_drm_destroy(pepper_drm_t *drm) if (drm->gl_renderer) pepper_renderer_destroy(drm->gl_renderer); +#ifdef HAVE_TBM + if (drm->wl_tbm_server) + wayland_tbm_server_deinit(drm->wl_tbm_server); +#endif + if (drm->gbm_device) gbm_device_destroy(drm->gbm_device);