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
4775b482
Commit
4775b482
authored
Jan 15, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atmo: fix memleak introduced by
59f746f6
parent
14de778f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/video_filter/atmo/atmo.cpp
modules/video_filter/atmo/atmo.cpp
+7
-5
No files found.
modules/video_filter/atmo/atmo.cpp
View file @
4775b482
...
...
@@ -1848,18 +1848,19 @@ static void Atmo_SetupParameters(filter_t *p_filter)
COM Server for AtmoLight not running ?
if the exe path is configured try to start the "userspace" driver
*/
LPTSTR
psz_path
=
ToT
(
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"atmowinexe"
));
char
*
psz_path
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"atmowinexe"
);
LPTSTR
ptsz_path
=
ToT
(
psz_path
);
if
(
psz_path
!=
NULL
)
{
STARTUPINFO
startupinfo
;
PROCESS_INFORMATION
pinfo
;
memset
(
&
startupinfo
,
0
,
sizeof
(
STARTUPINFO
));
startupinfo
.
cb
=
sizeof
(
STARTUPINFO
);
if
(
CreateProcess
(
psz_path
,
NULL
,
NULL
,
NULL
,
if
(
CreateProcess
(
p
t
sz_path
,
NULL
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
startupinfo
,
&
pinfo
)
==
TRUE
)
{
msg_Dbg
(
p_filter
,
"launched AtmoWin from %s"
,
FromT
(
psz_path
)
);
msg_Dbg
(
p_filter
,
"launched AtmoWin from %s"
,
psz_path
);
WaitForInputIdle
(
pinfo
.
hProcess
,
5000
);
/*
retry to initialize the library COM ... functionality
...
...
@@ -1867,9 +1868,10 @@ static void Atmo_SetupParameters(filter_t *p_filter)
*/
i
=
AtmoInitialize
(
p_filter
,
false
);
}
else
{
msg_Err
(
p_filter
,
"failed to launch AtmoWin from %s"
,
FromT
(
psz_path
)
);
msg_Err
(
p_filter
,
"failed to launch AtmoWin from %s"
,
psz_path
);
}
free
(
psz_path
);
free
(
ptsz_path
);
}
}
#endif
...
...
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