[Swfdec-commits] swfdec/swfdec_as_context.c
Benjamin Otte
company at kemper.freedesktop.org
Tue Jul 29 02:10:52 PDT 2008
swfdec/swfdec_as_context.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 8559d222d410d39ba2411a1bd9b3dc9a30b34866
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jul 29 11:09:16 2008 +0200
don't mark non-existing strings in the constant pool
This fixes the recent change where we properly handle broken strings in
constant pools.
diff --git a/swfdec/swfdec_as_context.c b/swfdec/swfdec_as_context.c
index 85fb46d..4234dff 100644
--- a/swfdec/swfdec_as_context.c
+++ b/swfdec/swfdec_as_context.c
@@ -363,7 +363,9 @@ swfdec_as_context_mark_constant_pools (gpointer key, gpointer value, gpointer un
guint i;
for (i = 0; i < swfdec_constant_pool_size (pool); i++) {
- swfdec_as_string_mark (swfdec_constant_pool_get (pool, i));
+ const char *s = swfdec_constant_pool_get (pool, i);
+ if (s)
+ swfdec_as_string_mark (s);
}
}
More information about the Swfdec-commits
mailing list