[gtk+/gtk-2-16] bgo#463773 - Handle a NULL display in gtk_clipboard_get_for_display() so Flash won't hang



commit e2bce0d630c6f424664e81ee95352c4cbc41fc27
Author: Federico Mena Quintero <federico novell com>
Date:   Tue May 12 13:44:04 2009 -0500

    bgo#463773 - Handle a NULL display in gtk_clipboard_get_for_display() so Flash won't hang
---
 gtk/gtkclipboard.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c
index 48ee63f..c9e9a2c 100644
--- a/gtk/gtkclipboard.c
+++ b/gtk/gtkclipboard.c
@@ -300,6 +300,7 @@ GtkClipboard *
 gtk_clipboard_get_for_display (GdkDisplay *display, 
 			       GdkAtom     selection)
 {
+  g_return_val_if_fail (display != NULL, NULL); /* See bgo#463773; this is needed because Flash Player sucks */
   g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
   g_return_val_if_fail (!display->closed, NULL);
 



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