Displaying 3 results from an estimated 3 matches for "findex_new".
2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index 4dd9c07..5d499b2 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -1063,6 +1063,10 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
findex_new = g_new (SwfdecFormatIndex, 1);
findex_new->index_ = end_index;
findex_new->format = swfdec_text_format_copy (findex->format);
+ if (findex_new->format == NULL) {
+ g_free (findex_new);
+ break;
+ }
iter = g_slist_insert (iter, findex_new, 1);
}
@@...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...9e9..e40001f 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -686,7 +686,7 @@ void
swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
SwfdecTextFormat *format, guint start_index, guint end_index)
{
- SwfdecFormatIndex *findex, *findex_new;
+ SwfdecFormatIndex *findex, *findex_new, *findex_prev;
guint findex_end_index;
GSList *iter, *next;
@@ -698,10 +698,13 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
g_assert (text->formats != NULL);
g_assert (text->formats->data != NULL);
g_ass...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...x;
+ ((SwfdecFormatIndex *)iter->next->data)->index_;
} else {
findex_end_index = g_utf8_strlen (text->input->str, -1);
}
@@ -1061,15 +1042,15 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
if (findex_end_index > end_index) {
findex_new = g_new (SwfdecFormatIndex, 1);
- findex_new->index = end_index;
+ findex_new->index_ = end_index;
findex_new->format = swfdec_text_format_copy (findex->format);
iter = g_slist_insert (iter, findex_new, 1);
}
- if (findex->index < start_index) {...