Closed norihiro closed 2 years ago
Correctly release allocated memories. Also skip processing the shader if gs_effect_create returns NULL.
gs_effect_create
OBS reported memory leaks like below.
Number of memory leaks: 49
Just FYI, I traced the memory leaks with my custom OBS Studio. https://github.com/obsproject/obs-studio/compare/master...norihiro:bmem-trace-memory-leak
Tested on my custom build on Linux (Fedora 34).
Preparation:
When testing:
The log shows no memory leaks as below.
info: Number of memory leaks: 0
Description
Correctly release allocated memories. Also skip processing the shader if
gs_effect_create
returns NULL.Motivation and Context
OBS reported memory leaks like below.
Just FYI, I traced the memory leaks with my custom OBS Studio. https://github.com/obsproject/obs-studio/compare/master...norihiro:bmem-trace-memory-leak
How Has This Been Tested?
Tested on my custom build on Linux (Fedora 34).
Preparation:
When testing:
The log shows no memory leaks as below.
Types of changes