Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5beb4d96
Commit
5beb4d96
authored
Jan 03, 2008
by
Faustino Osuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework/VLCLibrary.m: Clear potential memory leak & formatting clean up.
parent
846f9ad3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
extras/MacOSX/Framework/Sources/VLCLibrary.m
extras/MacOSX/Framework/Sources/VLCLibrary.m
+7
-2
extras/MacOSX/Framework/Sources/VLCMediaList.m
extras/MacOSX/Framework/Sources/VLCMediaList.m
+1
-0
extras/MacOSX/Framework/Sources/VLCVideoView.m
extras/MacOSX/Framework/Sources/VLCVideoView.m
+0
-2
No files found.
extras/MacOSX/Framework/Sources/VLCLibrary.m
View file @
5beb4d96
...
...
@@ -33,7 +33,7 @@ static VLCLibrary * sharedLibrary = nil;
void
__catch_exception
(
void
*
e
,
const
char
*
function
,
const
char
*
file
,
int
line_number
)
{
libvlc_exception_t
*
ex
=
(
libvlc_exception_t
*
)
e
;
if
(
libvlc_exception_raised
(
ex
)
)
if
(
libvlc_exception_raised
(
ex
)
)
{
NSException
*
libvlcException
=
[
NSException
exceptionWithName:
@"LibVLCException"
...
...
@@ -92,13 +92,18 @@ static void * DestroySharedLibraryAtExit( void )
-
(
void
)
dealloc
{
if
(
instance
)
if
(
instance
)
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_release
(
instance
,
&
ex
);
libvlc_exception_clear
(
&
ex
);
}
if
(
self
==
sharedLibrary
)
sharedLibrary
=
nil
;
instance
=
nil
;
[
audio
release
];
[
super
dealloc
];
...
...
extras/MacOSX/Framework/Sources/VLCMediaList.m
View file @
5beb4d96
...
...
@@ -299,6 +299,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
int
start
=
[[[
arrayOfArgs
objectAtIndex
:
0
]
objectForKey
:
@"index"
]
intValue
];
int
end
=
[[[
arrayOfArgs
objectAtIndex
:
[
arrayOfArgs
count
]
-
1
]
objectForKey
:
@"index"
]
intValue
];
NSRange
range
=
NSMakeRange
(
start
,
end
-
start
);
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndexesInRange
:
range
]
forKey
:
@"media"
];
for
(
NSDictionary
*
args
in
arrayOfArgs
)
{
...
...
extras/MacOSX/Framework/Sources/VLCVideoView.m
View file @
5beb4d96
...
...
@@ -65,8 +65,6 @@ NSString * VLCVideoViewLeftFullScreen = @"VLCVideoViewLeftFullScreen";
-
(
void
)
addVoutLayer
:(
CALayer
*
)
aLayer
;
@end
/******************************************************************************
* Interface & Implementation VLCConstraintLayoutManager
*
...
...
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