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
40e38ac0
Commit
40e38ac0
authored
Jul 14, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: fix leak on picture pool error
(same problem as XCB)
parent
bf697698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/hw/vdpau/display.c
modules/hw/vdpau/display.c
+9
-1
No files found.
modules/hw/vdpau/display.c
View file @
40e38ac0
...
@@ -136,7 +136,15 @@ static picture_pool_t *PoolAlloc(vout_display_t *vd, unsigned requested_count)
...
@@ -136,7 +136,15 @@ static picture_pool_t *PoolAlloc(vout_display_t *vd, unsigned requested_count)
count
++
;
count
++
;
}
}
sys
->
current
=
NULL
;
sys
->
current
=
NULL
;
return
count
?
picture_pool_New
(
count
,
pics
)
:
NULL
;
if
(
count
==
0
)
return
NULL
;
picture_pool_t
*
pool
=
picture_pool_New
(
count
,
pics
);
if
(
unlikely
(
pool
==
NULL
))
while
(
count
>
0
)
picture_Release
(
pics
[
--
count
]);
return
pool
;
}
}
static
void
PoolFree
(
vout_display_t
*
vd
,
picture_pool_t
*
pool
)
static
void
PoolFree
(
vout_display_t
*
vd
,
picture_pool_t
*
pool
)
...
...
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