[gtk+] win32: Don't double free stuff when finalizing drag context
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Don't double free stuff when finalizing drag context
- Date: Mon, 21 Nov 2011 14:05:21 +0000 (UTC)
commit 9275b87b6a3a0616b782b10c77ef12458185a869
Author: Alexander Larsson <alexl redhat com>
Date: Mon Nov 21 15:03:53 2011 +0100
win32: Don't double free stuff when finalizing drag context
We were freeing stuff that was already freed in the parent class
finalizer.
gdk/win32/gdkdnd-win32.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c
index b2ded74..f7acafc 100644
--- a/gdk/win32/gdkdnd-win32.c
+++ b/gdk/win32/gdkdnd-win32.c
@@ -150,14 +150,6 @@ gdk_win32_drag_context_finalize (GObject *object)
context = GDK_DRAG_CONTEXT (object);
context_win32 = GDK_WIN32_DRAG_CONTEXT (object);
- g_list_free (context->targets);
-
- if (context->source_window)
- g_object_unref (context->source_window);
-
- if (context->dest_window)
- g_object_unref (context->dest_window);
-
if (!use_ole2_dnd)
{
contexts = g_list_remove (contexts, context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]