diff --git a/src/switch_core_video.c b/src/switch_core_video.c index 4758706cac..5bbe826df3 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -1165,6 +1165,8 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_ txt, NULL, fg, bg, 0, 0); switch_img_txt_handle_destroy(&txthandle); + switch_safe_free(duptxt); + return txtimg; }