/soc/2013/ankitkv/gobjectification: a967ed801b0a: freed name and...

Ankit Vani a at nevitus.org
Sat Jun 29 07:33:36 EDT 2013


Changeset: a967ed801b0a3e358877af1abb3fc84852fccd9d
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-29 17:03 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/a967ed801b0a

Description:

freed name and title before setting the property in PurpleConversation

diffstat:

 libpurple/conversation.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (15 lines):

diff --git a/libpurple/conversation.c b/libpurple/conversation.c
--- a/libpurple/conversation.c
+++ b/libpurple/conversation.c
@@ -942,9 +942,11 @@ purple_conversation_set_property(GObject
 			priv->account = g_value_get_object(value);
 			break;
 		case PROP_NAME:
+			g_free(priv->name);
 			priv->name = g_strdup(g_value_get_string(value));
 			break;
 		case PROP_TITLE:
+			g_free(priv->title);
 			priv->title = g_strdup(g_value_get_string(value));
 			break;
 		case PROP_LOGGING:



More information about the Commits mailing list