[glib: 7/12] tests: Fix a memory leak in spawn-multithreaded
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 7/12] tests: Fix a memory leak in spawn-multithreaded
- Date: Mon, 14 Mar 2022 12:52:45 +0000 (UTC)
commit 7b004d40529c57eb06978da922620b43a71bc425
Author: Philip Withnall <pwithnall endlessos org>
Date: Sat Mar 12 01:18:43 2022 +0000
tests: Fix a memory leak in spawn-multithreaded
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib/tests/spawn-multithreaded.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/glib/tests/spawn-multithreaded.c b/glib/tests/spawn-multithreaded.c
index 41e126ecc..ef9521798 100644
--- a/glib/tests/spawn-multithreaded.c
+++ b/glib/tests/spawn-multithreaded.c
@@ -125,6 +125,7 @@ start_thread (gpointer user_data)
g_test_message ("Created pid: %" G_PID_FORMAT " (ttl %d)", pid, ttl);
g_main_loop_run (new_main_loop);
+ g_main_loop_unref (new_main_loop);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]