Commit 3e40ba92 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(popup_get_selection): Use xmalloc instead of malloc.

parent b02cd40b
......@@ -1077,14 +1077,10 @@ popup_get_selection (initial_event, dpyinfo, id)
&& (event.xany.display != dpyinfo->display
|| x_non_menubar_window_to_frame (dpyinfo, event.xany.window)))
{
queue_tmp = (struct event_queue *) malloc (sizeof (struct event_queue));
if (queue_tmp != NULL)
{
queue_tmp->event = event;
queue_tmp->next = queue;
queue = queue_tmp;
}
queue_tmp = (struct event_queue *) xmalloc (sizeof *queue_tmp);
queue_tmp->event = event;
queue_tmp->next = queue;
queue = queue_tmp;
}
else
XtDispatchEvent (&event);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment