Commit ab391138 authored by Nick Schermer's avatar Nick Schermer

Store the watch function id to avoid possible double free (bug #9709).

parent dee0200f
......@@ -903,6 +903,7 @@ xfsm_startup_start_properties (XfsmProperties *properties,
child_watch_data = g_new0 (XfsmStartupData, 1);
child_watch_data->manager = g_object_ref (manager);
child_watch_data->properties = properties;
child_watch_data->properties->child_watch_id =
g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
xfsm_startup_child_watch, child_watch_data,
(GDestroyNotify) xfsm_startup_data_free);
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