text-freetype2: Avoid memory leak

Doing just return could cause it to bypass the font_obj cleanup
This commit is contained in:
jp9000 2014-08-24 16:57:59 -07:00
parent 50b80925e3
commit 4ec0861481

View file

@ -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;