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

macosx: info panel: remove unneeded autorelease pool

parent 2588397b
......@@ -176,8 +176,6 @@
- (void)updatePanelWithItem:(input_item_t *)_p_item;
{
@autoreleasepool {
if (_p_item != p_item) {
if (p_item)
vlc_gc_decref(p_item);
......@@ -189,8 +187,8 @@
if (!p_item) {
/* Erase */
#define SET( foo ) \
[_##foo##TextField setStringValue:@""];
#define SET( foo ) \
[_##foo##TextField setStringValue:@""];
SET( uri );
SET( title );
SET( author );
......@@ -204,7 +202,7 @@
SET( date );
SET( description );
SET( encodedby );
#undef SET
#undef SET
[_imageWell setImage: [NSImage imageNamed: @"noart.png"]];
} else {
if (!input_item_IsPreparsed(p_item))
......@@ -222,10 +220,10 @@
[_titleTextField setStringValue:toNSStr(psz_title)];
free(psz_title);
#define SET( foo, bar ) \
char *psz_##foo = input_item_Get##bar ( p_item ); \
[_##foo##TextField setStringValue:toNSStr(psz_##foo)]; \
FREENULL( psz_##foo );
#define SET( foo, bar ) \
char *psz_##foo = input_item_Get##bar ( p_item ); \
[_##foo##TextField setStringValue:toNSStr(psz_##foo)]; \
FREENULL( psz_##foo );
/* fill the other fields */
SET( author, Artist );
......@@ -240,7 +238,7 @@
SET( description, Description );
SET( encodedby, EncodedBy );
#undef SET
#undef SET
char *psz_meta;
NSImage *image;
......@@ -260,7 +258,6 @@
/* update the stats once to display p_item change faster */
[self 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