[Swfdec] Branch 'as' - libswfdec/swfdec_as_object.c

Benjamin Otte company at kemper.freedesktop.org
Wed Jul 11 04:40:56 PDT 2007


 libswfdec/swfdec_as_object.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

New commits:
diff-tree 882b9ce2a53d333556ae7855b92f8bb5060c438d (from c066d38e799dcb3f96bf029a675f2166941c82c7)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Jul 11 13:28:20 2007 +0200

    pop the return value that gets pushed to the stack here

diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index af2e7e1..a18a4bc 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -27,6 +27,7 @@
 #include "swfdec_as_context.h"
 #include "swfdec_as_frame.h"
 #include "swfdec_as_native_function.h"
+#include "swfdec_as_stack.h"
 #include "swfdec_as_strings.h"
 #include "swfdec_as_super.h"
 #include "swfdec_debug.h"
@@ -557,18 +558,21 @@ swfdec_as_object_add_function (SwfdecAsO
 void
 swfdec_as_object_run (SwfdecAsObject *object, SwfdecScript *script)
 {
+  SwfdecAsContext *context;
   SwfdecAsFrame *frame;
 
   g_return_if_fail (SWFDEC_IS_AS_OBJECT (object));
   g_return_if_fail (SWFDEC_AS_OBJECT_HAS_CONTEXT (object));
   g_return_if_fail (script != NULL);
 
-  frame = swfdec_as_frame_new (object->context, script);
+  context = object->context;
+  frame = swfdec_as_frame_new (context, script);
   if (frame == NULL)
     return;
   swfdec_as_frame_set_this (frame, object);
   swfdec_as_frame_preload (frame);
-  swfdec_as_context_run (object->context);
+  swfdec_as_context_run (context);
+  swfdec_as_stack_pop (context);
 }
 
 /**


More information about the Swfdec mailing list