mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-24 16:49:59 +01:00
fix smaller leaks
This commit is contained in:
@@ -569,6 +569,7 @@ void* deal_with_fr( void *handle, char *name)
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Supposed to be mixer plugin (2 sources) but no f0r_update2");
|
||||
(*f0r_deinit)();
|
||||
vpf(port);
|
||||
if(plug_name) free(plug_name);
|
||||
return NULL;
|
||||
}
|
||||
} else if ( finfo.plugin_type == F0R_PLUGIN_TYPE_FILTER ) {
|
||||
@@ -577,6 +578,7 @@ void* deal_with_fr( void *handle, char *name)
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Supposed to be filter plugin (1 input source) but no f0r_update");
|
||||
(*f0r_deinit)();
|
||||
vpf(port);
|
||||
if(plug_name) free(plug_name);
|
||||
return NULL;
|
||||
}
|
||||
} else if ( finfo.plugin_type == F0R_PLUGIN_TYPE_SOURCE ) {
|
||||
@@ -586,12 +588,14 @@ void* deal_with_fr( void *handle, char *name)
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Supposed to be generator plugin (1 output source) but no f0r_update");
|
||||
(*f0r_deinit)();
|
||||
vpf(port);
|
||||
if(plug_name) free(plug_name);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Frei0r plugin '%s' (%s) unsupported type", finfo.name, plugin_name );
|
||||
(*f0r_deinit)();
|
||||
vpf(port);
|
||||
if(plug_name) free(plug_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -213,6 +213,12 @@ void vj_sdl_font_free(void *font)
|
||||
free(f->q->history[i]);
|
||||
f->q->history[i] = NULL;
|
||||
}
|
||||
if(f->q->history)
|
||||
free(f->q->history);
|
||||
if(f->q->width)
|
||||
free(f->q->width);
|
||||
if(f->q->height)
|
||||
free(f->q->height);
|
||||
free(f->q);
|
||||
}
|
||||
free(font);
|
||||
|
||||
Reference in New Issue
Block a user