[Swfdec] libswfdec/swfdec_as_interpret.c

Pekka Lampila medar at kemper.freedesktop.org
Thu Nov 1 09:43:03 PDT 2007


 libswfdec/swfdec_as_interpret.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0041248c7266dc65865c616e7c474b02a0ef76b4
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date:   Thu Nov 1 16:47:56 2007 +0200

    Don't assert in swfdec_action_extends if creating new object fails

diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 234ba33..24e1bb9 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -2321,7 +2321,7 @@ swfdec_action_extends (SwfdecAsContext *cx, guint action, const guint8 *data, gu
   super = SWFDEC_AS_VALUE_GET_OBJECT (superclass);
   prototype = swfdec_as_object_new_empty (cx);
   if (prototype == NULL)
-    return;
+    goto fail;
   swfdec_as_object_get_variable (super, SWFDEC_AS_STR_prototype, &proto);
   swfdec_as_object_set_variable (prototype, SWFDEC_AS_STR___proto__, &proto);
   if (cx->version > 5) {


More information about the Swfdec mailing list