Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -822,6 +822,7 @@ int ff_vk_compile_shader(AVFilterContext *avctx, SPIRVShader *shd, · 821 unmodified lines | ||
| 822 | 822 | &shd->shader.module); |
| 823 | 823 | |
| 824 | 824 | /* Free the GLSlangResult struct */ |
| 825 | + av_free(res->data); | |
| 825 | 826 | av_free(res); |
| 826 | 827 | |
| 827 | 828 | if (ret != VK_SUCCESS) { |
| @@ -1228,8 +1229,10 @@ void ff_vk_filter_uninit(AVFilterContext *avctx) · 400 unmodified lines | ||
| 1228 | 1229 | |
| 1229 | 1230 | glslang_uninit(); |
| 1230 | 1231 | |
| 1231 | − for (int i = 0; i < s->samplers_num; i++) | |
| 1232 | + for (int i = 0; i < s->samplers_num; i++) { | |
| 1232 | 1233 | vkDestroySampler(s->hwctx->act_dev, *s->samplers[i], s->hwctx->alloc); |
| 1234 | + av_free(s->samplers[i]); | |
| 1235 | + } | |
| 1233 | 1236 | av_freep(&s->samplers); |
| 1234 | 1237 | |
| 1235 | 1238 | for (int i = 0; i < s->pipelines_num; i++) |