Fix 'mono' package typo
[mono.git] / bockbuild / mac-sdk / patches / gtk / 0074-fix-NULL-pointer-in-clipboard.patch
1 commit 124e814f478936e017e58359240c540ad6678f3b
2 Author: John Ralls <jralls@ceridwen.us>
3 Date:   Sat Sep 28 10:55:22 2013 -0700
4
5     Bug 651224 - Potential NULL display ptr from quartz gtk_clipboard_wait_for_contents
6
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,
12        GdkAtom *atoms;
13
14        length = [types count] * sizeof (GdkAtom);
15 -
16 +
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 ();
22
23        atoms = g_malloc (length);