Commit 3a3e9505 authored by Ghislain MARY's avatar Ghislain MARY

Fix memory leaks in video preset handling.

parent cc7b95a6
......@@ -42,11 +42,15 @@ struct _MSVideoPresetsManager {
static void free_preset_config(MSVideoPresetConfiguration *vpc) {
ms_list_for_each(vpc->tags, ms_free);
ms_list_free(vpc->tags);
ms_free(vpc);
}
static void free_preset(MSVideoPreset *vp) {
ms_free(vp->name);
ms_list_for_each(vp->configs, (MSIterateFunc)free_preset_config);
ms_list_free(vp->configs);
ms_free(vp);
}
static MSVideoPreset * add_video_preset(MSVideoPresetsManager *manager, const char *name) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment