gdkdisplay-x11: Plug memory leak

This commit is contained in:
Timm Bäder 2016-01-18 17:22:09 +01:00
parent ff5d14f1a8
commit af958b86cb

View File

@ -2934,7 +2934,12 @@ gdk_x11_display_get_default_seat (GdkDisplay *display)
pointer = gdk_seat_get_pointer (l->data);
if (gdk_x11_device_get_id (pointer) == device_id)
return l->data;
{
GdkSeat *seat = l->data;
g_list_free (seats);
return seat;
}
}
g_list_free (seats);