im.pidgin.pidgin: 8b1ab6eb99f716b56043135f3510193ac2a9943f
resiak at soc.pidgin.im
resiak at soc.pidgin.im
Sat Dec 1 18:50:55 EST 2007
-----------------------------------------------------------------
Revision: 8b1ab6eb99f716b56043135f3510193ac2a9943f
Ancestor: e3bffdaa6b74aaaa3dbc5ecc0708b4a490d08bce
Author: resiak at soc.pidgin.im
Date: 2007-12-01T23:40:13
Branch: im.pidgin.pidgin
Modified files:
libpurple/account.c
ChangeLog:
g_strdup() connection error descriptions when restoring cached errors for
accounts. The description gets g_free()d when the error changes, causing
crashes.
Fixes #4160
-------------- next part --------------
============================================================
--- libpurple/account.c 058de127408868558e3cdc7f3bc48fa619119876
+++ libpurple/account.c 4913e4cbb4bcb3af7af553ca85a2e3fbf8c39d31
@@ -741,7 +741,7 @@ parse_current_error(xmlnode *node, Purpl
current_error = g_new0(PurpleConnectionErrorInfo, 1);
current_error->type = type;
- current_error->description = description;
+ current_error->description = g_strdup(description);
set_current_error(account, current_error);
}
More information about the Commits
mailing list