From: Martin Storsjo Date: Thu, 5 Dec 2013 09:27:30 +0000 (+0200) Subject: Fix leaks in AMF objects that contain arrays X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc76f0a8461e6c8f1277eba58eae201b2dc1d06a;p=rtmpdump Fix leaks in AMF objects that contain arrays --- diff --git a/librtmp/amf.c b/librtmp/amf.c index 563486c..73d1486 100644 --- a/librtmp/amf.c +++ b/librtmp/amf.c @@ -861,7 +861,8 @@ AMFProp_Dump(AMFObjectProperty *prop) void AMFProp_Reset(AMFObjectProperty *prop) { - if (prop->p_type == AMF_OBJECT) + if (prop->p_type == AMF_OBJECT || prop->p_type == AMF_ECMA_ARRAY || + prop->p_type == AMF_STRICT_ARRAY) AMF_Reset(&prop->p_vu.p_object); else {