Monitor: fix memleaks

This commit is contained in:
李通洲
2023-09-10 18:39:45 +08:00
parent 82c300f7f6
commit e2abe31fc1
+5
View File
@@ -141,4 +141,9 @@ void ffGenerateMonitorJson(FF_MAYBE_UNUSED FFMonitorOptions* options, yyjson_mut
yyjson_mut_obj_add_uint(doc, obj, "physicalWidth", item->physicalWidth);
}
}
FF_LIST_FOR_EACH(FFMonitorResult, item, results)
{
ffStrbufDestroy(&item->name);
}
}