Commit 581c9952 authored by David Fuhrmann's avatar David Fuhrmann

macosx: info panel: remove unneeded autorelease pool

parent 2588397b
...@@ -176,8 +176,6 @@ ...@@ -176,8 +176,6 @@
- (void)updatePanelWithItem:(input_item_t *)_p_item; - (void)updatePanelWithItem:(input_item_t *)_p_item;
{ {
@autoreleasepool {
if (_p_item != p_item) { if (_p_item != p_item) {
if (p_item) if (p_item)
vlc_gc_decref(p_item); vlc_gc_decref(p_item);
...@@ -189,8 +187,8 @@ ...@@ -189,8 +187,8 @@
if (!p_item) { if (!p_item) {
/* Erase */ /* Erase */
#define SET( foo ) \ #define SET( foo ) \
[_##foo##TextField setStringValue:@""]; [_##foo##TextField setStringValue:@""];
SET( uri ); SET( uri );
SET( title ); SET( title );
SET( author ); SET( author );
...@@ -204,7 +202,7 @@ ...@@ -204,7 +202,7 @@
SET( date ); SET( date );
SET( description ); SET( description );
SET( encodedby ); SET( encodedby );
#undef SET #undef SET
[_imageWell setImage: [NSImage imageNamed: @"noart.png"]]; [_imageWell setImage: [NSImage imageNamed: @"noart.png"]];
} else { } else {
if (!input_item_IsPreparsed(p_item)) if (!input_item_IsPreparsed(p_item))
...@@ -222,10 +220,10 @@ ...@@ -222,10 +220,10 @@
[_titleTextField setStringValue:toNSStr(psz_title)]; [_titleTextField setStringValue:toNSStr(psz_title)];
free(psz_title); free(psz_title);
#define SET( foo, bar ) \ #define SET( foo, bar ) \
char *psz_##foo = input_item_Get##bar ( p_item ); \ char *psz_##foo = input_item_Get##bar ( p_item ); \
[_##foo##TextField setStringValue:toNSStr(psz_##foo)]; \ [_##foo##TextField setStringValue:toNSStr(psz_##foo)]; \
FREENULL( psz_##foo ); FREENULL( psz_##foo );
/* fill the other fields */ /* fill the other fields */
SET( author, Artist ); SET( author, Artist );
...@@ -240,7 +238,7 @@ ...@@ -240,7 +238,7 @@
SET( description, Description ); SET( description, Description );
SET( encodedby, EncodedBy ); SET( encodedby, EncodedBy );
#undef SET #undef SET
char *psz_meta; char *psz_meta;
NSImage *image; NSImage *image;
...@@ -260,7 +258,6 @@ ...@@ -260,7 +258,6 @@
/* update the stats once to display p_item change faster */ /* update the stats once to display p_item change faster */
[self updateStatistics]; [self updateStatistics];
}
} }
- (void)updateStatistics - (void)updateStatistics
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment