mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
win32: Stop using g_slice
This commit is contained in:
parent
5cca7488d4
commit
6f93baf420
@ -1836,7 +1836,7 @@ static void
|
|||||||
gdk_drag_anim_destroy (GdkDragAnim *anim)
|
gdk_drag_anim_destroy (GdkDragAnim *anim)
|
||||||
{
|
{
|
||||||
g_object_unref (anim->drag);
|
g_object_unref (anim->drag);
|
||||||
g_slice_free (GdkDragAnim, anim);
|
g_free (anim);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -1936,7 +1936,7 @@ gdk_win32_drag_drop_done (GdkDrag *drag,
|
|||||||
cairo_surface_destroy (surface);
|
cairo_surface_destroy (surface);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
anim = g_slice_new0 (GdkDragAnim);
|
anim = g_new0 (GdkDragAnim, 1);
|
||||||
g_set_object (&anim->drag, drag_win32);
|
g_set_object (&anim->drag, drag_win32);
|
||||||
anim->frame_clock = gdk_surface_get_frame_clock (drag_win32->drag_surface);
|
anim->frame_clock = gdk_surface_get_frame_clock (drag_win32->drag_surface);
|
||||||
anim->start_time = gdk_frame_clock_get_frame_time (anim->frame_clock);
|
anim->start_time = gdk_frame_clock_get_frame_time (anim->frame_clock);
|
||||||
|
Loading…
Reference in New Issue
Block a user