Commit ff5860a7 authored by Debarshi Ray's avatar Debarshi Ray

query: Hold a reference on the source

parent 88796c0e
......@@ -37,7 +37,7 @@ photos_query_new (gchar *sparql)
src_mngr = photos_source_manager_new ();
active_object = photos_base_manager_get_active_object (src_mngr);
if (active_object != NULL)
query->source = PHOTOS_SOURCE (active_object);
query->source = PHOTOS_SOURCE (g_object_ref (active_object));
g_object_unref (src_mngr);
query->sparql = sparql;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment