From 54c39172df164dd936943ea65c7736fa47c2b63b Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 22 May 2019 16:20:04 -0700 Subject: [PATCH] libsysprof-ui: fix dereference after steal This is undefined behavior and most go right to left --- src/libsysprof/sysprof-proxy-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsysprof/sysprof-proxy-source.c b/src/libsysprof/sysprof-proxy-source.c index afb1a582..186b3dbf 100644 --- a/src/libsysprof/sysprof-proxy-source.c +++ b/src/libsysprof/sysprof-proxy-source.c @@ -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 {