emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc 4c882c8bbea: Destroy IGC roots rather than leaking them (Bug


From: Pip Cet
Subject: scratch/igc 4c882c8bbea: Destroy IGC roots rather than leaking them (Bug#75477)
Date: Fri, 10 Jan 2025 10:36:59 -0500 (EST)

branch: scratch/igc
commit 4c882c8bbeaf66673517bd412358a5d62e200576
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>

    Destroy IGC roots rather than leaking them (Bug#75477)
    
    * src/gtkutil.c (xg_free_frame_widgets) [HAVE_MPS]: Use 'igc_xfree',
    not 'xfree', on IGC roots.
---
 src/gtkutil.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index 3615003f18b..e1949b4a06d 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1914,7 +1914,13 @@ xg_free_frame_widgets (struct frame *f)
         = g_object_get_data (G_OBJECT (FRAME_GTK_OUTER_WIDGET (f)),
                              TB_INFO_KEY);
       if (tbinfo)
-        xfree (tbinfo);
+       {
+#ifdef HAVE_MPS
+         igc_xfree (tbinfo);
+#else
+         xfree (tbinfo);
+#endif
+       }
 
       /* x_free_frame_resources should have taken care of it */
 #ifndef HAVE_PGTK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]