soc.2008.masterpassword: 4f5f3740: Fixed a few if(arg) g_free(arg);

scrouaf at soc.pidgin.im scrouaf at soc.pidgin.im
Wed Aug 27 06:06:11 EDT 2008


-----------------------------------------------------------------
Revision: 4f5f37402a9358500575dd8080da5d79ef96c717
Ancestor: cf7feeaab72491cb0d869475fa42be105ed87946
Author: scrouaf at soc.pidgin.im
Date: 2008-08-27T10:00:45
Branch: im.pidgin.soc.2008.masterpassword
URL: http://d.pidgin.im/viewmtn/revision/info/4f5f37402a9358500575dd8080da5d79ef96c717

Modified files:
        libpurple/account.c

ChangeLog: 

Fixed a few if(arg) g_free(arg);

-------------- next part --------------
============================================================
--- libpurple/account.c	453a8543ea287d11f7c06f7c69e2f35219f6991c
+++ libpurple/account.c	613456ae776686bda9ba757e49850f946349fd1a
@@ -1637,8 +1637,8 @@ purple_account_set_password_async(Purple
 
 	g_return_if_fail(account != NULL);
 
-	if (account->password != NULL)
-		g_free(account->password);
+	g_free(account->password);
+
 	account->password = g_strdup(password);
 
 	if (purple_account_get_remember_password(account) == FALSE) {


More information about the Commits mailing list