StTextureCache: Fix a fallout from GTask port

Set the task data that load_pixbuf_thread func expects.

https://bugzilla.gnome.org/show_bug.cgi?id=757418
This commit is contained in:
Kalev Lember 2015-11-01 00:21:10 +01:00
parent aacdd4fd5e
commit df0b465e76

View File

@ -575,6 +575,7 @@ load_texture_async (StTextureCache *cache,
if (data->file) if (data->file)
{ {
GTask *task = g_task_new (cache, NULL, on_pixbuf_loaded, data); GTask *task = g_task_new (cache, NULL, on_pixbuf_loaded, data);
g_task_set_task_data (task, data, NULL);
g_task_run_in_thread (task, load_pixbuf_thread); g_task_run_in_thread (task, load_pixbuf_thread);
g_object_unref (task); g_object_unref (task);
} }