talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 51af19b25efb00d4752de6e14fde0c32a7c79aaf
parent 749c0585d081499613cdb289e9045ad3c2c0dcaa
Author: Colin Leroy <colin@colino.net>
Date:   Mon, 26 May 2014 15:31:43 +0200

Fix GCond use with newer Glib

Diffstat:
Msrc/prefs_account.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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);