[Swfdec] libswfdec/swfdec_text_field_movie_html.c
Pekka Lampila
medar at kemper.freedesktop.org
Thu Nov 1 07:44:51 PDT 2007
libswfdec/swfdec_text_field_movie_html.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit c951e8b272e12cbc54eed0b4e30c26a4f6c3605d
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Thu Nov 1 16:41:37 2007 +0200
Missed few format == NULL things
diff --git a/libswfdec/swfdec_text_field_movie_html.c b/libswfdec/swfdec_text_field_movie_html.c
index ba60530..0a2d950 100644
--- a/libswfdec/swfdec_text_field_movie_html.c
+++ b/libswfdec/swfdec_text_field_movie_html.c
@@ -73,7 +73,11 @@ swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
n->name_length = f->name_length;
n->index = data->text->len;
n->end_index = n->index + 1;
- n->format = swfdec_text_format_copy (f->format);
+ if (f->format != NULL) {
+ n->format = swfdec_text_format_copy (f->format);
+ } else {
+ n->format = NULL;
+ }
data->tags_closed = g_slist_prepend (data->tags_closed, n);
break;
}
@@ -119,6 +123,9 @@ swfdec_text_field_movie_html_tag_set_attribute (ParserData *data,
g_return_if_fail (value != NULL);
g_return_if_fail (value_length >= 0);
+ if (!tag->format)
+ return;
+
object = SWFDEC_AS_OBJECT (tag->format);
SWFDEC_AS_VALUE_SET_STRING (&val, swfdec_as_context_give_string (
object->context, g_strndup (value, value_length)));
More information about the Swfdec
mailing list