summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-03-10 11:41:33 +0100
committerBenjamin Otte <otte@gnome.org>2009-03-10 11:41:33 +0100
commit876081737b014769560eaaa73318097978f76a22 (patch)
treee3dd8b7ab65ee5de432a338ee3a85b01fe59d453
parent05b3780336d2bc68065f69dcac6a850fd5a45530 (diff)
fix crash in beginBitmapFill when bitmap is NULL
-rw-r--r--swfdec/swfdec_movie_as_drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swfdec/swfdec_movie_as_drawing.c b/swfdec/swfdec_movie_as_drawing.c
index 851d444a..5a328a3d 100644
--- a/swfdec/swfdec_movie_as_drawing.c
+++ b/swfdec/swfdec_movie_as_drawing.c
@@ -443,7 +443,7 @@ swfdec_sprite_movie_beginBitmapFill (SwfdecAsContext *cx,
SWFDEC_AS_CHECK (SWFDEC_TYPE_MOVIE, &movie, "O|Obb",
&bitmap, &mat, &repeat, &smoothing);
movie->draw_fill = NULL;
- if (!SWFDEC_IS_BITMAP_DATA (bitmap->relay))
+ if (bitmap == NULL || !SWFDEC_IS_BITMAP_DATA (bitmap->relay))
return;
pattern = swfdec_bitmap_pattern_new (SWFDEC_BITMAP_DATA (bitmap->relay));