Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3fc54c1a
Commit
3fc54c1a
authored
Jul 05, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4: fix a memory leak and an invalid release in MacOS code.
parent
2cf7cf9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+9
-1
No files found.
modules/demux/mp4/drms.c
View file @
3fc54c1a
...
@@ -1751,6 +1751,7 @@ static int GetiPodID( int64_t *p_ipod_id )
...
@@ -1751,6 +1751,7 @@ static int GetiPodID( int64_t *p_ipod_id )
CFDictionarySetValue
(
match_dic
,
CFDictionarySetValue
(
match_dic
,
CFSTR
(
kIOPropertyMatchKey
),
CFSTR
(
kIOPropertyMatchKey
),
smatch_dic
);
smatch_dic
);
CFRelease
(
smatch_dic
);
if
(
IOServiceGetMatchingServices
(
port
,
match_dic
,
if
(
IOServiceGetMatchingServices
(
port
,
match_dic
,
&
iterator
)
==
KERN_SUCCESS
)
&
iterator
)
==
KERN_SUCCESS
)
...
@@ -1782,8 +1783,15 @@ static int GetiPodID( int64_t *p_ipod_id )
...
@@ -1782,8 +1783,15 @@ static int GetiPodID( int64_t *p_ipod_id )
IOObjectRelease
(
iterator
);
IOObjectRelease
(
iterator
);
}
}
CFRelease
(
match_dic
);
}
}
else
{
if
(
match_dic
)
CFRelease
(
match_dic
);
if
(
smatch_dic
)
CFRelease
(
smatch_dic
);
}
mach_port_deallocate
(
mach_task_self
(),
port
);
mach_port_deallocate
(
mach_task_self
(),
port
);
}
}
...
...
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