mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
searchengine: Add missing sanity check
This commit is contained in:
parent
45e6e9a7d1
commit
41490f9624
@ -97,8 +97,11 @@ finalize (GObject *object)
|
||||
|
||||
g_clear_object (&engine->search_query);
|
||||
g_clear_object (&engine->search_location_query);
|
||||
tracker_sparql_connection_close (engine->sparql_conn);
|
||||
g_clear_object (&engine->sparql_conn);
|
||||
if (engine->sparql_conn != NULL)
|
||||
{
|
||||
tracker_sparql_connection_close (engine->sparql_conn);
|
||||
g_clear_object (&engine->sparql_conn);
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (gtk_search_engine_tracker3_parent_class)->finalize (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user