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
b24fc9a9
Commit
b24fc9a9
authored
Jun 10, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DShow: don't leak device name.
parent
f1e0a1b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+3
-1
No files found.
modules/access/dshow/dshow.cpp
View file @
b24fc9a9
...
@@ -2008,7 +2008,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
...
@@ -2008,7 +2008,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
{
{
module_config_t
*
p_item
;
module_config_t
*
p_item
;
bool
b_audio
=
false
;
bool
b_audio
=
false
;
c
onst
c
har
*
psz_device
=
NULL
;
char
*
psz_device
=
NULL
;
if
(
!
EMPTY_STR
(
newval
.
psz_string
)
)
if
(
!
EMPTY_STR
(
newval
.
psz_string
)
)
psz_device
=
strdup
(
newval
.
psz_string
);
psz_device
=
strdup
(
newval
.
psz_string
);
...
@@ -2052,12 +2052,14 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
...
@@ -2052,12 +2052,14 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
CoUninitialize
();
CoUninitialize
();
msg_Err
(
p_this
,
"didn't find device: %s"
,
devicename
.
c_str
()
);
msg_Err
(
p_this
,
"didn't find device: %s"
,
devicename
.
c_str
()
);
free
(
psz_device
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
/* Uninitialize OLE/COM */
/* Uninitialize OLE/COM */
CoUninitialize
();
CoUninitialize
();
free
(
psz_device
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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