[gtk/wip/baedert/for-master: 33/54] showrendernode: Plug GOptionContext memory leak




commit 3cc4d566c939310138fe1c143409c0c66c8474d0
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 10 19:02:43 2020 +0200

    showrendernode: Plug GOptionContext memory leak

 tests/showrendernode.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/showrendernode.c b/tests/showrendernode.c
index 25e9960251..4f41f0c4f9 100644
--- a/tests/showrendernode.c
+++ b/tests/showrendernode.c
@@ -152,6 +152,9 @@ main (int argc, char **argv)
       return 1;
     }
 
+  g_option_context_free (option_context);
+  option_context = NULL;
+
   g_message ("Compare: %d, write to filename: %s", compare_node, write_to_filename);
 
   gtk_init ();


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