git.videolan.org
/
vlc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
macosx: release allocated objects.
[vlc.git]
/
modules
/
gui
/
macosx
/
misc.m
diff --git
a/modules/gui/macosx/misc.m
b/modules/gui/macosx/misc.m
index
4d77a38
..
fe7b507
100644
(file)
--- a/
modules/gui/macosx/misc.m
+++ b/
modules/gui/macosx/misc.m
@@
-91,7
+91,7
@@
@implementation NSAnimation (VLCAdditions)
/* fake class attributes */
@implementation NSAnimation (VLCAdditions)
/* fake class attributes */
-static NSMapTable *VLCAdditions_userInfo =
NULL
;
+static NSMapTable *VLCAdditions_userInfo =
nil
;
+ (void)load
{
+ (void)load
{
@@
-124,7
+124,7
@@
static NSMapTable *VLCAdditions_userInfo = NULL;
@implementation NSScreen (VLCAdditions)
@implementation NSScreen (VLCAdditions)
-static NSMutableArray *blackoutWindows =
NULL
;
+static NSMutableArray *blackoutWindows =
nil
;
+ (void)load
{
+ (void)load
{
@@
-132,6
+132,12
@@
static NSMutableArray *blackoutWindows = NULL;
blackoutWindows = [[NSMutableArray alloc] initWithCapacity:1];
}
blackoutWindows = [[NSMutableArray alloc] initWithCapacity:1];
}
+- (void)dealloc
+{
+ [blackoutWindows release];
+ [super dealloc];
+}
+
+ (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID
{
int i;
+ (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID
{
int i;