Displaying 1 result from an estimated 1 matches for "swfdec_as_object_steal_watches".
2007 Sep 10
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...se_mem (object->context, sizeof (SwfdecAsVariable));
g_slice_free (SwfdecAsVariable, value);
}
@@ -601,6 +658,19 @@ swfdec_as_object_add (SwfdecAsObject *ob
}
}
+/* This is a huge hack design-wise, but we can't use watch->watch,
+ * it might be gone already */
+static gboolean
+swfdec_as_object_steal_watches (gpointer key, gpointer value, gpointer object)
+{
+ SwfdecAsWatch *watch = value;
+
+ g_assert (watch->refcount == 1);
+ watch->watch = (SwfdecAsFunction *) object;
+ swfdec_as_watch_unref (watch);
+ return TRUE;
+}
+
void
swfdec_as_object_collect (SwfdecAsObject *object)
{
@@ -610,6...