GNOME Bugzilla – Bug 680023
EvView does not disconnect model callbacks
Last modified: 2012-08-14 15:13:41 UTC
When EvView is destroyed, it does not disconnect any of its callbacks from the model. This means that crashes will occur if the model stays alive and is modified. It also looks like it does not disconnect all of the callbacks when the model is changed (though most are disconnected). I am suggesting two changes to fix this: 1. in ev_view_set_model use g_signal_handlers_disconnect_by_data (requires glib 2.32) or g_signal_handlers_disconnect_matched to ensure that all of the signals are disconnected. 2. Add the same disconnection code to ev_view_dispose.
Fixed in git master, thanks for reporting and suggesting a fix :-)