We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea61b2 commit fc257ffCopy full SHA for fc257ff
src/vo_postprocess/text.c
@@ -100,6 +100,8 @@ struct state_text {
100
MagickWand *wand_text;
101
};
102
103
+static void text_done(void *state);
104
+
105
static bool text_get_property(void *state, int property, void *val, size_t *len)
106
{
107
UNUSED(state);
@@ -172,13 +174,13 @@ static void * text_init(const char *config) {
172
174
173
175
if(!s->text || strlen(s->text) == 0){
176
log_msg(LOG_LEVEL_ERROR, "[text] Text can not be empty!\n");
- free(s);
177
+ text_done(s);
178
return NULL;
179
}
180
181
if (s->req_h < -1) {
182
log_msg(LOG_LEVEL_ERROR, "[text] Text height cannot be negative!\n");
183
184
185
186
0 commit comments