mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
background: fix task leak in load_file_async
g_task_run_in_thread takes its own reference to the task passed in, so we can unref the initial reference. https://bugzilla.gnome.org/show_bug.cgi?id=696157
This commit is contained in:
parent
9ed3a77102
commit
5ed6e37e3c
@ -1129,6 +1129,7 @@ meta_background_load_file_async (MetaBackground *self,
|
||||
g_task_set_task_data (task, task_data, (GDestroyNotify) load_file_task_data_free);
|
||||
|
||||
g_task_run_in_thread (task, (GTaskThreadFunc) load_file);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user