[gtk+] wayland: Initialize variable



commit 2f12eb616a277c935be8b834f1607041d04c2f5c
Author: Benjamin Otte <otte redhat com>
Date:   Mon Dec 4 18:28:14 2017 +0100

    wayland: Initialize variable
    
    Otherwise we get NULL-warnings when we try to use (read: unref) it.

 gdk/wayland/gdkdnd-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c
index d8a3d4e..c676f25 100644
--- a/gdk/wayland/gdkdnd-wayland.c
+++ b/gdk/wayland/gdkdnd-wayland.c
@@ -548,6 +548,7 @@ _gdk_wayland_drop_context_new (GdkDisplay            *display,
   context = GDK_DRAG_CONTEXT (context_wayland);
   context->display = display;
   context->is_source = FALSE;
+  context->formats = gdk_content_formats_new (NULL, 0);
 
   return context;
 }


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