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
1a5c86d8
Commit
1a5c86d8
authored
Jul 14, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/XVideo: fix long-standing massive leak on error
parent
30dbe16a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+4
-2
No files found.
modules/video_output/xcb/xvideo.c
View file @
1a5c86d8
...
...
@@ -657,13 +657,15 @@ static void PoolAlloc (vout_display_t *vd, unsigned requested_count)
if
(
unlikely
(
pic_array
[
count
]
==
NULL
))
break
;
}
xcb_flush
(
p_sys
->
conn
);
if
(
count
==
0
)
return
;
p_sys
->
pool
=
picture_pool_New
(
count
,
pic_array
);
/* TODO release picture resources if NULL */
xcb_flush
(
p_sys
->
conn
);
if
(
unlikely
(
p_sys
->
pool
==
NULL
))
while
(
count
>
0
)
picture_Release
(
pic_array
[
--
count
]);
}
/**
...
...
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