From 0eb42d95ef294498244b07ffe23bb789f66e6140 Mon Sep 17 00:00:00 2001 From: Sangjin Lee Date: Tue, 1 Dec 2015 15:49:15 +0900 Subject: [PATCH] drm: fix resource leak Change-Id: Ied296861266fd8479efdf3407ce968cf4a194cca Signed-off-by: Sangjin Lee --- src/lib/drm/drm-common.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.7.4