libsysprof-ui: fix dereference after steal

This is undefined behavior and most go right to left
This commit is contained in:
Christian Hergert
2019-05-22 16:20:04 -07:00
parent e42f0e2f84
commit 54c39172df

View File

@ -476,7 +476,8 @@ sysprof_proxy_source_stop (SysprofSource *source)
-1,
NULL,
sysprof_proxy_source_stop_cb,
g_steal_pointer (&monitor));
monitor);
monitor = NULL; /* stolen */
}
else
{