pidgin: f7cc3ea0: Fixing leak is nice, but let's not crash...
sadrul at pidgin.im
sadrul at pidgin.im
Thu Oct 8 20:07:46 EDT 2009
-----------------------------------------------------------------
Revision: f7cc3ea0dcdf510d8274ac962fdce0573b922192
Ancestor: c3bbcc1b9bda38bfb8630149794b74ef6f5c0772
Author: sadrul at pidgin.im
Date: 2009-10-08T19:15:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f7cc3ea0dcdf510d8274ac962fdce0573b922192
Modified files:
libpurple/account.c
ChangeLog:
Fixing leak is nice, but let's not crash in the process.
-------------- next part --------------
============================================================
--- libpurple/account.c 49ef6b9998017c57fe14ef2effad8390f28c6e15
+++ libpurple/account.c b1da2ac35bb65ceb54d6353b19e3d7721bfbda40
@@ -1052,8 +1052,10 @@ purple_account_destroy(PurpleAccount *ac
priv = PURPLE_ACCOUNT_GET_PRIVATE(account);
PURPLE_DBUS_UNREGISTER_POINTER(priv->current_error);
- g_free(priv->current_error->description);
- g_free(priv->current_error);
+ if (priv->current_error) {
+ g_free(priv->current_error->description);
+ g_free(priv->current_error);
+ }
g_free(priv);
PURPLE_DBUS_UNREGISTER_POINTER(account);
More information about the Commits
mailing list