1 commit 124e814f478936e017e58359240c540ad6678f3b
2 Author: John Ralls <jralls@ceridwen.us>
3 Date: Sat Sep 28 10:55:22 2013 -0700
5 Bug 651224 - Potential NULL display ptr from quartz gtk_clipboard_wait_for_contents
7 diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c
8 index ab7732b..a68d1cf 100644
9 --- a/gtk/gtkclipboard-quartz.c
10 +++ b/gtk/gtkclipboard-quartz.c
11 @@ -701,10 +701,12 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
14 length = [types count] * sizeof (GdkAtom);
17 selection_data = g_slice_new0 (GtkSelectionData);
18 selection_data->selection = clipboard->selection;
19 selection_data->target = target;
20 + if (!selection_data->display)
21 + selection_data->display = gdk_display_get_default ();
23 atoms = g_malloc (length);