diff options
author | Milan Crha <mcrha@redhat.com> | 2010-01-28 04:19:31 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-01-28 04:19:31 +0800 |
commit | 63dc4e2fab210d84f516161367e0e40d9de3d61b (patch) | |
tree | a7405fac4ea02d3073d269dda3257dc856e74b52 /plugins | |
parent | 34f719bef87c56ed6d5eddcdba361cbc1c24ed5b (diff) | |
download | gsoc2013-evolution-63dc4e2fab210d84f516161367e0e40d9de3d61b.tar.gz gsoc2013-evolution-63dc4e2fab210d84f516161367e0e40d9de3d61b.tar.zst gsoc2013-evolution-63dc4e2fab210d84f516161367e0e40d9de3d61b.zip |
Bug #607776 - Crash in image-inline.c:size_allocate_cb
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/image-inline/image-inline.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/image-inline/image-inline.c b/plugins/image-inline/image-inline.c index 2cbc300d39..d3aa595951 100644 --- a/plugins/image-inline/image-inline.c +++ b/plugins/image-inline/image-inline.c @@ -276,6 +276,15 @@ org_gnome_image_inline_pobject_free (EMFormatHTMLPObject *object) } if (image_object->widget != NULL) { + GtkWidget *parent; + + g_signal_handlers_disconnect_by_func (image_object->widget, button_press_press_cb, image_object); + g_signal_handlers_disconnect_by_func (image_object->widget, drag_data_get_cb, image_object); + + parent = gtk_widget_get_parent (image_object->widget); + if (parent) + g_signal_handlers_disconnect_by_func (parent, size_allocate_cb, image_object); + g_object_unref (image_object->widget); image_object->widget = NULL; } |