From: Colin Leroy Date: Mon, 26 May 2014 13:31:43 +0000 (+0200) Subject: Fix GCond use with newer Glib X-Git-Tag: 3.10.1~74 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=51af19b25efb00d4752de6e14fde0c32a7c79aaf Fix GCond use with newer Glib --- diff --git a/src/prefs_account.c b/src/prefs_account.c index cae698d8a..91638003b 100644 --- a/src/prefs_account.c +++ b/src/prefs_account.c @@ -3390,6 +3390,7 @@ static gboolean sslcert_get_password(gpointer source, gpointer data) #if !GLIB_CHECK_VERSION(2,32,0) pass_data.cond = g_cond_new(); #else + pass_data.cond = g_new0(GCond, 1); g_cond_init(pass_data.cond); #endif pass_data.mutex = cm_mutex_new(); @@ -3404,6 +3405,7 @@ static gboolean sslcert_get_password(gpointer source, gpointer data) g_cond_free(pass_data.cond); #else g_cond_clear(pass_data.cond); + g_free(pass_data.cond); #endif g_mutex_unlock(pass_data.mutex); cm_mutex_free(pass_data.mutex);