Unref the current engine only if it is set

This commit is contained in:
Arnaud Renevier 2008-07-28 00:34:58 +02:00 committed by Christian Dywan
parent 6f3f0f9d3d
commit 486aa8f5dc

View file

@ -281,7 +281,8 @@ midori_search_entry_finalize (GObject* object)
MidoriSearchEntry* search_entry = MIDORI_SEARCH_ENTRY (object);
g_object_unref (search_entry->search_engines);
g_object_unref (search_entry->current_item);
if (search_entry->current_item)
g_object_unref (search_entry->current_item);
G_OBJECT_CLASS (midori_search_entry_parent_class)->finalize (object);
}