[gtk/gtk-3-24: 2/5] Ensure that GtkDragDestSite is inited to 0.



commit 44c033ccb835e81327374173ae3c723b68c0c9a6
Author: John Ralls <jralls ceridwen us>
Date:   Wed Dec 18 21:03:28 2019 -0800

    Ensure that GtkDragDestSite is inited to 0.

 gtk/gtkdnd-quartz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index a026584119..b62b0625d1 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -444,7 +444,7 @@ gtk_drag_dest_set (GtkWidget            *widget,
 
   old_site = g_object_get_data (G_OBJECT (widget), "gtk-drag-dest");
 
-  site = g_new (GtkDragDestSite, 1);
+  site = g_new0 (GtkDragDestSite, 1);
   site->flags = flags;
   site->have_drag = FALSE;
   if (targets)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]