Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xvba-video
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
xvba-video
Commits
5287a61d
Commit
5287a61d
authored
Jun 27, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/xvba_video_glx.c: Do not leak textures from obj_glx_surface.
parent
752043de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/xvba_video_glx.c
src/xvba_video_glx.c
+8
-2
No files found.
src/xvba_video_glx.c
View file @
5287a61d
...
...
@@ -307,6 +307,7 @@ static void destroy_hw_image_glx(
for
(
i
=
0
;
i
<
hwi
->
num_textures
;
i
++
)
{
assert
(
hwi
->
textures
[
i
]);
if
(
hwi
->
textures
[
i
])
gl_destroy_texture
(
&
hwi
->
textures
[
i
],
hwi
->
target
);
hwi
->
formats
[
i
]
=
GL_NONE
;
hwi
->
textures
[
i
]
=
0
;
...
...
@@ -632,6 +633,11 @@ destroy_glx_surface(
if
(
!
obj_glx_surface
)
return
;
if
(
obj_glx_surface
->
texture
)
{
gl_destroy_texture
(
&
obj_glx_surface
->
texture
,
obj_glx_surface
->
target
);
obj_glx_surface
->
texture
=
0
;
}
if
(
obj_glx_surface
->
fbo
)
{
gl_destroy_framebuffer_object
(
obj_glx_surface
->
fbo
);
obj_glx_surface
->
fbo
=
NULL
;
...
...
@@ -1459,7 +1465,7 @@ ensure_scaler(
}
if
(
obj_glx_surface
->
hqscaler_texture
)
{
gl
DeleteTextures
(
1
,
&
obj_glx_surface
->
hqscaler_texture
);
gl
_destroy_texture
(
&
obj_glx_surface
->
hqscaler_texture
,
GL_TEXTURE_1D
);
obj_glx_surface
->
hqscaler_texture
=
0
;
}
...
...
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