Disconnect view settings notification in finalize
This commit is contained in:
parent
171030a3a8
commit
3f5ac14b45
1 changed files with 8 additions and 0 deletions
|
@ -132,6 +132,11 @@ midori_view_get_property (GObject* object,
|
|||
GValue* value,
|
||||
GParamSpec* pspec);
|
||||
|
||||
static void
|
||||
midori_view_settings_notify_cb (MidoriWebSettings* settings,
|
||||
GParamSpec* pspec,
|
||||
MidoriView* view);
|
||||
|
||||
static void
|
||||
midori_cclosure_marshal_VOID__STRING_BOOLEAN (GClosure* closure,
|
||||
GValue* return_value,
|
||||
|
@ -1067,6 +1072,9 @@ midori_view_finalize (GObject* object)
|
|||
|
||||
view = MIDORI_VIEW (object);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (view->settings,
|
||||
midori_view_settings_notify_cb, view);
|
||||
|
||||
g_free (view->uri);
|
||||
g_free (view->title);
|
||||
if (view->icon)
|
||||
|
|
Loading…
Reference in a new issue