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
72e0c0e9
Commit
72e0c0e9
authored
Apr 25, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_output: fix window leak
parent
0befeec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/video_output/video_output.c
src/video_output/video_output.c
+5
-2
No files found.
src/video_output/video_output.c
View file @
72e0c0e9
...
...
@@ -193,6 +193,8 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
/* */
if
(
vlc_clone
(
&
vout
->
p
->
thread
,
Thread
,
vout
,
VLC_THREAD_PRIORITY_OUTPUT
))
{
if
(
vout
->
p
->
window
!=
NULL
)
vout_display_window_Delete
(
vout
->
p
->
window
);
spu_Destroy
(
vout
->
p
->
spu
);
vlc_object_release
(
vout
);
return
NULL
;
...
...
@@ -267,6 +269,9 @@ void vout_Close(vout_thread_t *vout)
vout_control_PushVoid
(
&
vout
->
p
->
control
,
VOUT_CONTROL_CLEAN
);
vlc_join
(
vout
->
p
->
thread
,
NULL
);
if
(
vout
->
p
->
window
!=
NULL
)
vout_display_window_Delete
(
vout
->
p
->
window
);
vlc_mutex_lock
(
&
vout
->
p
->
spu_lock
);
spu_Destroy
(
vout
->
p
->
spu
);
vout
->
p
->
spu
=
NULL
;
...
...
@@ -1378,8 +1383,6 @@ static void ThreadInit(vout_thread_t *vout)
static
void
ThreadClean
(
vout_thread_t
*
vout
)
{
if
(
vout
->
p
->
window
!=
NULL
)
vout_window_Delete
(
vout
->
p
->
window
);
vout_chrono_Clean
(
&
vout
->
p
->
render
);
vout
->
p
->
dead
=
true
;
vout_control_Dead
(
&
vout
->
p
->
control
);
...
...
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