diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-02 22:15:13 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-02 22:16:18 +0800 |
commit | ef153cb591ba0965a5bd43ef843657ea4c1313e3 (patch) | |
tree | 061823108009998e2897bc55d88ad3a1d6ac07ad | |
parent | d15df005f0a8b8aced44bbe50d941ca5d5344c9c (diff) | |
download | gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar.gz gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar.bz2 gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar.lz gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar.xz gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.tar.zst gsoc2013-empathy-ef153cb591ba0965a5bd43ef843657ea4c1313e3.zip |
empathy_send_file_with_file_chooser: keep on the contact while the dialog is running
It's not safe to assume that the EmpathyContact stays alive.
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 3 |
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); } |