[gtk/leak-fixes-46: 5/5] gtk4-demo: Fix a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/leak-fixes-46: 5/5] gtk4-demo: Fix a memory leak
- Date: Tue, 16 Aug 2022 12:24:05 +0000 (UTC)
commit 1722b39f925d9e6b764463df1d27c6a93b09af10
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]