diff options
author | Richard Hult <richard@imendio.com> | 2008-09-29 10:41:07 +0000 |
---|---|---|
committer | Richard Hult <rhult@src.gnome.org> | 2008-09-29 10:41:07 +0000 |
commit | b29d3d40827f29957ec2e4a3f37024d812563238 (patch) | |
tree | 01405808af8b1d868a8f4dfff42834f5bc24ea12 /gtk/gtkclipboard-quartz.c | |
parent | 3f8d98b94d554e42d48d3c0699196dc439ab90d8 (diff) | |
download | gtk+-b29d3d40827f29957ec2e4a3f37024d812563238.tar.gz |
Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c
2008-09-29 Richard Hult <richard@imendio.com>
Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c
* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
Patch from Jon A. Cruz to initialize the allocated selection data.
svn path=/trunk/; revision=21540
Diffstat (limited to 'gtk/gtkclipboard-quartz.c')
-rw-r--r-- | gtk/gtkclipboard-quartz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c index 2a8b7ac282..bc003bcd3e 100644 --- a/gtk/gtkclipboard-quartz.c +++ b/gtk/gtkclipboard-quartz.c @@ -890,7 +890,7 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard, length = [types count] * sizeof (GdkAtom); - selection_data = g_slice_new (GtkSelectionData); + selection_data = g_slice_new0 (GtkSelectionData); selection_data->selection = clipboard->selection; selection_data->target = target; |