use xmalloc_uncollectable in make_cl_data
authorBT Templeton <bpt@hcoop.net>
Thu, 28 Jun 2012 03:24:19 +0000 (23:24 -0400)
committerRobin Templeton <robin@terpri.org>
Sat, 18 Apr 2015 22:49:07 +0000 (18:49 -0400)
* src/gtkutil.c (make_cl_data): Allocate the callback data with
  `xmalloc_uncollectable'.

src/gtkutil.c

index b01382a..b43901b 100644 (file)
@@ -2119,7 +2119,7 @@ make_cl_data (xg_menu_cb_data *cl_data, struct frame *f, GCallback highlight_cb)
 {
   if (! cl_data)
     {
-      cl_data = xmalloc (sizeof *cl_data);
+      cl_data = xmalloc_uncollectable (sizeof *cl_data);
       cl_data->f = f;
       cl_data->menu_bar_vector = f->menu_bar_vector;
       cl_data->menu_bar_items_used = f->menu_bar_items_used;