diff options
author | Richard Hult <richard@imendio.com> | 2006-07-19 18:55:27 +0000 |
---|---|---|
committer | Richard Hult <rhult@src.gnome.org> | 2006-07-19 18:55:27 +0000 |
commit | bbc45a6230aefa39d2b0aa1abcaf55f88b0473c1 (patch) | |
tree | ae922974903a4f1ba2d9d09774da60e5168a7a74 /gtk/gtkclipboard-quartz.c | |
parent | d3973cb8653a9382e670ce4be560997b6f650ad7 (diff) | |
download | gtk+-bbc45a6230aefa39d2b0aa1abcaf55f88b0473c1.tar.gz |
Reindent.
2006-07-19 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c (register_types): Reindent.
* gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
autorelease pool.
Diffstat (limited to 'gtk/gtkclipboard-quartz.c')
-rw-r--r-- | gtk/gtkclipboard-quartz.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c index b7ebea8864..ba87b42973 100644 --- a/gtk/gtkclipboard-quartz.c +++ b/gtk/gtkclipboard-quartz.c @@ -371,8 +371,12 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard, { GtkClipboardOwner *owner; NSArray *types; + NSAutoreleasePool *pool; + + pool = [[NSAutoreleasePool alloc] init]; owner = [[GtkClipboardOwner alloc] initWithClipboard:clipboard]; + types = _gtk_quartz_target_entries_to_pasteboard_types (targets, n_targets); clipboard->user_data = user_data; @@ -384,6 +388,8 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard, [clipboard->pasteboard declareTypes:types owner:owner]; + [pool release]; + return true; } |