mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
text-freetype2: Avoid memory leak
Doing just return could cause it to bypass the font_obj cleanup
This commit is contained in:
parent
50b80925e3
commit
4ec0861481
|
@ -293,7 +293,7 @@ static void ft2_source_update(void *data, obs_data_t settings)
|
|||
|
||||
srcdata->log_mode = chat_log_mode;
|
||||
|
||||
if (ft2_lib == NULL) return;
|
||||
if (ft2_lib == NULL) goto error;
|
||||
|
||||
if (srcdata->draw_effect == NULL) {
|
||||
char *effect_file = NULL;
|
||||
|
|
Loading…
Reference in a new issue