]> granicus.if.org Git - rtmpdump/commitdiff
Fix leaks in AMF objects that contain arrays
authorMartin Storsjo <martin@martin.st>
Thu, 5 Dec 2013 09:27:30 +0000 (11:27 +0200)
committerMartin Storsjo <martin@martin.st>
Thu, 5 Dec 2013 09:27:30 +0000 (11:27 +0200)
librtmp/amf.c

index 563486cd974141a897689be3926f7195639791d4..73d1486474c754b258dd4224823b716c42d9c1fb 100644 (file)
@@ -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
     {