[sysprof/wip/chergert/control-fd] capture: release collector struct during thread finalize



commit 828063a01712db8da886e77d1eca156a1484e665
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 9 13:07:35 2020 -0800

    capture: release collector struct during thread finalize

 src/libsysprof-capture/sysprof-collector.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c
index 8239dc0..dd2c64c 100644
--- a/src/libsysprof-capture/sysprof-collector.c
+++ b/src/libsysprof-capture/sysprof-collector.c
@@ -191,6 +191,7 @@ sysprof_collector_free (gpointer data)
       if (collector->writer != NULL)
         sysprof_capture_writer_flush (collector->writer);
       g_clear_pointer (&collector->writer, sysprof_capture_writer_unref);
+      g_slice_free (SysprofCollector, collector);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]