emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc ea8ee5e1555: Trace Lisp_Object in widget_value


From: Pip Cet
Subject: scratch/igc ea8ee5e1555: Trace Lisp_Object in widget_value
Date: Fri, 5 Jul 2024 16:04:38 -0400 (EDT)

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

    Trace Lisp_Object in widget_value
    
    * src/menu.c (make_widget_value)
    (free_menubar_widget_value_tree): Use `igc_xzalloc', `igc_xfree'.
---
 src/menu.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/menu.c b/src/menu.c
index de4d0964e9c..fde54a15df7 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -575,7 +575,11 @@ make_widget_value (const char *name, char *value,
   widget_value *wv;
 
   block_input ();
+#ifdef HAVE_MPS
+  wv = igc_xzalloc_ambig (sizeof (widget_value));
+#else
   wv = xzalloc (sizeof (widget_value));
+#endif
   unblock_input ();
 
   wv->name = (char *) name;
@@ -608,7 +612,11 @@ free_menubar_widget_value_tree (widget_value *wv)
       wv->next = (widget_value *) 0xDEADBEEF;
     }
   block_input ();
+#ifdef HAVE_MPS
+  igc_xfree (wv);
+#else
   xfree (wv);
+#endif
   unblock_input ();
 }
 



reply via email to

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