[gtk/fix-gears-leak] gtk4-demo: Fix a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-gears-leak] gtk4-demo: Fix a memory leak
- Date: Sat, 13 Aug 2022 21:28:13 +0000 (UTC)
commit 4a04e468fd38cb21c978f4667d54ba1cbcc736ca
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 13 17:27:40 2022 -0400
gtk4-demo: Fix a memory leak
The gears demo was leaking its vertices.
demos/gtk-demo/gtkgears.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/demos/gtk-demo/gtkgears.c b/demos/gtk-demo/gtkgears.c
index 44b49b8b09..400f6b1104 100644
--- a/demos/gtk-demo/gtkgears.c
+++ b/demos/gtk-demo/gtkgears.c
@@ -223,6 +223,7 @@ static void
destroy_gear (struct gear *g)
{
g_free (g->strips);
+ g_free (g->vertices);
g_free (g);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]