Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
2fb0517e
Commit
2fb0517e
authored
May 25, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: release allocated objects.
parent
ec5d8611
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+8
-2
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+5
-2
No files found.
modules/gui/macosx/misc.m
View file @
2fb0517e
...
...
@@ -91,7 +91,7 @@
@implementation
NSAnimation
(
VLCAdditions
)
/* fake class attributes */
static
NSMapTable
*
VLCAdditions_userInfo
=
NULL
;
static
NSMapTable
*
VLCAdditions_userInfo
=
nil
;
+
(
void
)
load
{
...
...
@@ -124,7 +124,7 @@ static NSMapTable *VLCAdditions_userInfo = NULL;
@implementation
NSScreen
(
VLCAdditions
)
static
NSMutableArray
*
blackoutWindows
=
NULL
;
static
NSMutableArray
*
blackoutWindows
=
nil
;
+
(
void
)
load
{
...
...
@@ -132,6 +132,12 @@ static NSMutableArray *blackoutWindows = NULL;
blackoutWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1
];
}
-
(
void
)
dealloc
{
[
blackoutWindows
release
];
[
super
dealloc
];
}
+
(
NSScreen
*
)
screenWithDisplayID
:
(
CGDirectDisplayID
)
displayID
{
int
i
;
...
...
modules/gui/macosx/simple_prefs.m
View file @
2fb0517e
...
...
@@ -661,7 +661,11 @@ static inline void save_string_list( intf_thread_t * p_intf, id object, const ch
p_item
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
name
);
p_stringobject
=
(
NSString
*
)[[
object
selectedItem
]
representedObject
];
assert
([
p_stringobject
isKindOfClass
:[
NSString
class
]]);
if
(
p_stringobject
)
config_PutPsz
(
p_intf
,
name
,
[
p_stringobject
UTF8String
]
);
if
(
p_stringobject
)
{
config_PutPsz
(
p_intf
,
name
,
[
p_stringobject
UTF8String
]
);
[
p_stringobject
release
];
}
}
static
inline
void
save_module_list
(
intf_thread_t
*
p_intf
,
id
object
,
const
char
*
name
)
...
...
@@ -694,7 +698,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
{
char
*
psz_tmp
;
int
i
;
NSString
*
p_stringobject
;
#define SaveIntList( object, name ) save_int_list( p_intf, object, name )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment