]> Devoid-pointer.net GitWeb - LFSBench.git/commitdiff
Destory mutex in error path
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 9 Jul 2014 10:21:28 +0000 (12:21 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 9 Jul 2014 10:21:28 +0000 (12:21 +0200)
appwindow.c

index 8e73371cb2d47d3425694e43591867538adccb46..9e1ff862059d63a8f22fd0f123b7ae88e821f304 100644 (file)
@@ -97,6 +97,7 @@ int create_window()
   
   Xdisp = XOpenDisplay(NULL);
   if (Xdisp == NULL) {
+    pthread_mutex_destroy(&draw_mutex);
     fprintf(stderr, "CRITICAL: Unable to open X display!\n");
     return -1;
   }