[gtk/matthiasc/for-master: 7/7] x11: Avoid a critical in clipboard data transfer



commit 7a427a7dc3c7e7a3209ef0558ea8a4174bad78e9
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 12 21:29:15 2020 -0400

    x11: Avoid a critical in clipboard data transfer
    
    The handler we are calling here asserts that it gets
    an interned string as mime_type. So give it one.

 gdk/x11/gdkselectionoutputstream-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c
index cfacb13ac5..bdd4c57d08 100644
--- a/gdk/x11/gdkselectionoutputstream-x11.c
+++ b/gdk/x11/gdkselectionoutputstream-x11.c
@@ -892,7 +892,7 @@ gdk_x11_selection_output_streams_request (GdkDisplay                   *display,
                                                         target,
                                                         8,
                                                         timestamp);
-          handler (stream, target, user_data);
+          handler (stream, mime_type, user_data);
           return TRUE;
         }
     }


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