Do not try to release the wl_drm if it is not initialized. 05/42305/1 accepted/tizen/mobile/20150626.021442 submit/tizen_mobile/20150625.111933
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 25 Jun 2015 11:18:48 +0000 (20:18 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 25 Jun 2015 11:18:48 +0000 (20:18 +0900)
Change-Id: I94750eec5bc9c7bd9621eb3045867b7e047a2109

src/util_wayland.c

index 4764af6..366f9ba 100644 (file)
@@ -437,7 +437,10 @@ EAPI int widget_util_get_drm_fd(void *dpy, int *fd)
 
        wl_event_queue_destroy(wl_queue);
        wl_registry_destroy(wl_registry);
-       wl_drm_destroy(info.wl_drm);
+
+       if (info.wl_drm) {
+               wl_drm_destroy(info.wl_drm);
+       }
 
        if (disp == dpy) {
                wl_display_disconnect(disp);