aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-ui-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index a1d4d95e5..810bbfc26 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1732,6 +1732,7 @@ file_manager_send_file_response_cb (GtkDialog *widget,
g_object_unref (file);
}
+ g_object_unref (contact);
gtk_widget_destroy (GTK_WIDGET (widget));
}
@@ -1771,7 +1772,7 @@ empathy_send_file_with_file_chooser (EmpathyContact *contact)
g_signal_connect (widget, "response",
G_CALLBACK (file_manager_send_file_response_cb),
- contact);
+ g_object_ref (contact));
gtk_widget_show (widget);
}