Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
fac17fd4
Unverified
Commit
fac17fd4
authored
May 14, 2020
by
Lynne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vulkan: fix 2 minor memory leaks
parent
dc9cf7f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vulkan.c
libavfilter/vulkan.c
+4
-1
No files found.
libavfilter/vulkan.c
View file @
fac17fd4
...
...
@@ -822,6 +822,7 @@ int ff_vk_compile_shader(AVFilterContext *avctx, SPIRVShader *shd,
&
shd
->
shader
.
module
);
/* Free the GLSlangResult struct */
av_free
(
res
->
data
);
av_free
(
res
);
if
(
ret
!=
VK_SUCCESS
)
{
...
...
@@ -1228,8 +1229,10 @@ void ff_vk_filter_uninit(AVFilterContext *avctx)
glslang_uninit
();
for
(
int
i
=
0
;
i
<
s
->
samplers_num
;
i
++
)
for
(
int
i
=
0
;
i
<
s
->
samplers_num
;
i
++
)
{
vkDestroySampler
(
s
->
hwctx
->
act_dev
,
*
s
->
samplers
[
i
],
s
->
hwctx
->
alloc
);
av_free
(
s
->
samplers
[
i
]);
}
av_freep
(
&
s
->
samplers
);
for
(
int
i
=
0
;
i
<
s
->
pipelines_num
;
i
++
)
...
...
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