Merge branch 'backport-mr-5489' into 'gtk-3-24'

Backport !5489 to gtk-3-24

See merge request GNOME/gtk!5490
This commit is contained in:
Matthias Clasen 2023-02-10 11:37:11 +00:00
commit 1562ce4ebd

View File

@ -100,8 +100,11 @@ finalize (GObject *object)
g_clear_object (&engine->search_query);
g_clear_object (&engine->search_location_query);
g_clear_object (&engine->file_check_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);
}
@ -391,8 +394,8 @@ gtk_search_engine_tracker3_new (void)
NULL, &error, NULL);
if (!engine)
{
g_critical ("Could not init tracker3 search engine: %s",
error->message);
g_warning ("Could not init tracker3 search engine: %s",
error->message);
g_error_free (error);
}