event_loop: deinit event_loop after stopping 84/172284/2
authorBoram Park <boram1288.park@samsung.com>
Tue, 13 Mar 2018 04:18:04 +0000 (13:18 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 13 Mar 2018 06:59:51 +0000 (15:59 +0900)
Change-Id: Id3c6e588fa19fedf849f766df594521e17ba201c

src/tdm.c

index 7d80016..5146f7e 100644 (file)
--- a/src/tdm.c
+++ b/src/tdm.c
@@ -1140,9 +1140,10 @@ tdm_display_deinit(tdm_display *dpy)
         */
        _pthread_mutex_lock(&private_display->lock);
        tdm_event_loop_stop(private_display);
-       tdm_event_loop_deinit(private_display);
        _pthread_mutex_unlock(&private_display->lock);
 
+       tdm_event_loop_deinit(private_display);
+
        /* when private_output is destroyed, all vblank resources of client and server
         * are destroyed. Then we can call tdm_vblank_deinit. After destroying display,
         * we can unload backend modulues.