[gtk/4.0-backports: 51/53] x11: Fix a memory leak




commit 7e9f0810d441225611d90a8349063858fdae0d1a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 7 01:31:40 2021 -0500

    x11: Fix a memory leak
    
    We ref the content formats here, so we better unref it
    when done.

 gdk/x11/gdkdrag-x11.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index c0706cbe74..00e9a104ab 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1095,6 +1095,8 @@ xdnd_send_enter (GdkX11Drag *drag_x11)
     }
 
   xdnd_send_xevent (drag_x11, &xev);
+
+  gdk_content_formats_unref (formats);
 }
 
 static void


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