forked from AuroraMiddleware/gtk
Plugged memory leak in gdk_x11_device_manager_xi2_list_devices.
This was simply a misplaced 'g_list_copy()'.
This commit is contained in:
parent
a530f88234
commit
d9ebdb7610
@ -496,7 +496,7 @@ gdk_x11_device_manager_xi2_list_devices (GdkDeviceManager *device_manager,
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case GDK_DEVICE_TYPE_MASTER:
|
case GDK_DEVICE_TYPE_MASTER:
|
||||||
list = device_manager_xi2->master_devices;
|
list = g_list_copy (device_manager_xi2->master_devices);
|
||||||
break;
|
break;
|
||||||
case GDK_DEVICE_TYPE_SLAVE:
|
case GDK_DEVICE_TYPE_SLAVE:
|
||||||
case GDK_DEVICE_TYPE_FLOATING:
|
case GDK_DEVICE_TYPE_FLOATING:
|
||||||
@ -519,7 +519,7 @@ gdk_x11_device_manager_xi2_list_devices (GdkDeviceManager *device_manager,
|
|||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
return g_list_copy (list);
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GdkDevice *
|
static GdkDevice *
|
||||||
|
Loading…
Reference in New Issue
Block a user