From dc76f0a8461e6c8f1277eba58eae201b2dc1d06a Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Thu, 5 Dec 2013 11:27:30 +0200 Subject: [PATCH] Fix leaks in AMF objects that contain arrays --- librtmp/amf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.11.4.GIT