gdk_event_put() copies the event and setting name, so we don't have to
Thu May 16 12:50:13 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb): gdk_event_put() copies the event and setting name, so we don't have to strdup() it here. (Fix from Michael Meeks, #81953)
This commit is contained in:
@ -2257,7 +2257,7 @@ gdk_xsettings_notify_cb (const char *name,
|
||||
for (i = 0; i < G_N_ELEMENTS (settings_map) ; i++)
|
||||
if (strcmp (settings_map[i].xsettings_name, name) == 0)
|
||||
{
|
||||
new_event.setting.name = g_strdup (settings_map[i].gdk_name);
|
||||
new_event.setting.name = settings_map[i].gdk_name;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user