[Swfdec] libswfdec/swfdec_as_object.c
Benjamin Otte
company at kemper.freedesktop.org
Fri Jul 13 09:22:05 PDT 2007
libswfdec/swfdec_as_object.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
New commits:
diff-tree a3230a81dec4ce19e8113794bf71dcbf2e474c4b (from 9c97866d31aa8b014aac79b676ef36492ef39888)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jul 13 18:22:13 2007 +0200
too much copy/paste
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 0b8c848..4eac7d2 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -330,16 +330,15 @@ void
swfdec_as_object_foreach_rename (SwfdecAsObject *object, SwfdecAsVariableForeachRename func,
gpointer data)
{
- GHashTable *properties_new;
- ForeachRenameData fdata = { object, properties_new, func, data };
+ ForeachRenameData fdata = { object, NULL, func, data };
g_return_if_fail (SWFDEC_IS_AS_OBJECT (object));
g_return_if_fail (func != NULL);
- properties_new = g_hash_table_new (g_direct_hash, g_direct_equal);
+ fdata.properties_new = g_hash_table_new (g_direct_hash, g_direct_equal);
g_hash_table_foreach_remove (object->properties, swfdec_as_object_hash_foreach_rename, &fdata);
g_hash_table_destroy (object->properties);
- object->properties = properties_new;
+ object->properties = fdata.properties_new;
}
static char *
More information about the Swfdec
mailing list