projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
749c058
)
Fix GCond use with newer Glib
author
Colin Leroy
<colin@colino.net>
Mon, 26 May 2014 13:31:43 +0000
(15:31 +0200)
committer
Colin Leroy
<colin@colino.net>
Mon, 26 May 2014 13:31:43 +0000
(15:31 +0200)
src/prefs_account.c
patch
|
blob
|
history
diff --git
a/src/prefs_account.c
b/src/prefs_account.c
index cae698d8a2347d7717cac49eca783573387318e0..91638003b5c06c9fcaa4b9beb6f4796181e9703c 100644
(file)
--- 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);