Unref the current engine only if it is set
This commit is contained in:
parent
6f3f0f9d3d
commit
486aa8f5dc
1 changed files with 2 additions and 1 deletions
|
@ -281,6 +281,7 @@ midori_search_entry_finalize (GObject* object)
|
|||
MidoriSearchEntry* search_entry = MIDORI_SEARCH_ENTRY (object);
|
||||
|
||||
g_object_unref (search_entry->search_engines);
|
||||
if (search_entry->current_item)
|
||||
g_object_unref (search_entry->current_item);
|
||||
|
||||
G_OBJECT_CLASS (midori_search_entry_parent_class)->finalize (object);
|
||||
|
|
Loading…
Reference in a new issue