[Commits] [SCM] claws branch, master, updated. 3.13.2-75-gda1b45c

ticho at claws-mail.org ticho at claws-mail.org
Sat Mar 19 19:55:15 CET 2016


The branch, master has been updated
       via  da1b45c1f740e74c392081065aa36c0bbf4a3e99 (commit)
      from  1a9b1d83726cd36c15325d5c5893617cc47b8675 (commit)

Summary of changes:
 src/plugins/gdata/cm_gdata_contacts.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit da1b45c1f740e74c392081065aa36c0bbf4a3e99
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Mar 19 19:54:40 2016 +0100

    Fix crash when unloading GData plugin when it's not configured.

diff --git a/src/plugins/gdata/cm_gdata_contacts.c b/src/plugins/gdata/cm_gdata_contacts.c
index 86fc265..fb75263 100644
--- a/src/plugins/gdata/cm_gdata_contacts.c
+++ b/src/plugins/gdata/cm_gdata_contacts.c
@@ -638,10 +638,12 @@ void cm_gdata_contacts_done(void)
 #if GDATA_CHECK_VERSION(0,17,2)
     /* store refresh token */
     pass = gdata_oauth2_authorizer_dup_refresh_token(authorizer);
-		passwd_store_set(PWS_PLUGIN, "GData", GDATA_TOKEN_PWD_STRING, pass,
-				FALSE);
-    memset(pass, 0, strlen(pass));
-    g_free(pass);
+		if (pass != NULL) {
+			passwd_store_set(PWS_PLUGIN, "GData", GDATA_TOKEN_PWD_STRING, pass,
+					FALSE);
+	    memset(pass, 0, strlen(pass));
+	    g_free(pass);
+		}
 #endif
 
     g_object_unref(G_OBJECT(authorizer));

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list