Unref the conversation we were created with and fix and initalizer

Thu, 09 May 2019 22:38:40 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 09 May 2019 22:38:40 -0500
changeset 39585
8a19d82a81f8
parent 39584
b8155feb19d5
child 39586
7930e1e73056
child 39587
239f04ce507d
child 39589
60c7ad40393f
child 39592
445e2cf29f4d

Unref the conversation we were created with and fix and initalizer

pidgin/pidgininvitedialog.c file | annotate | diff | comparison | revisions
--- a/pidgin/pidgininvitedialog.c	Thu May 09 22:38:16 2019 -0500
+++ b/pidgin/pidgininvitedialog.c	Thu May 09 22:38:40 2019 -0500
@@ -39,7 +39,7 @@
 	N_PROPERTIES,
 };
 
-static GParamSpec *properties[N_PROPERTIES] = {};
+static GParamSpec *properties[N_PROPERTIES] = {0, };
 
 G_DEFINE_TYPE_WITH_PRIVATE(PidginInviteDialog, pidgin_invite_dialog, GTK_TYPE_DIALOG);
 
@@ -126,6 +126,7 @@
 
 	g_clear_pointer(&priv->contact, g_free);
 	g_clear_pointer(&priv->message, g_free);
+	g_clear_object(&priv->conversation);
 
 	G_OBJECT_CLASS(pidgin_invite_dialog_parent_class)->finalize(obj);
 }

mercurial