From eabe6fc43043453cb8daee4ae73e4d71ea3ff4f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 9 Jul 2014 12:21:28 +0200 Subject: [PATCH] Destory mutex in error path --- appwindow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/appwindow.c b/appwindow.c index 8e73371..9e1ff86 100644 --- a/appwindow.c +++ b/appwindow.c @@ -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; } -- 2.43.5