[Swfdec] libswfdec/swfdec_resource.c
Benjamin Otte
company at kemper.freedesktop.org
Mon Nov 12 14:43:53 PST 2007
libswfdec/swfdec_resource.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 610d2464a3fbd13f85056d69200686af4e619e5c
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Nov 12 23:42:59 2007 +0100
there may be no movie that we can delete
diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c
index 5c666b7..8a17d9e 100644
--- a/libswfdec/swfdec_resource.c
+++ b/libswfdec/swfdec_resource.c
@@ -530,8 +530,10 @@ swfdec_resource_load (SwfdecPlayer *player, const char *target, const char *url,
return;
}
if (url[0] == '\0') {
- resource = g_object_ref (SWFDEC_MOVIE (movie)->resource);
- swfdec_player_request_unload (player, path, swfdec_resource_do_unload, resource, g_object_unref);
+ if (movie) {
+ resource = g_object_ref (SWFDEC_MOVIE (movie)->resource);
+ swfdec_player_request_unload (player, path, swfdec_resource_do_unload, resource, g_object_unref);
+ }
g_free (path);
} else {
resource = g_object_new (SWFDEC_TYPE_RESOURCE, NULL);
More information about the Swfdec
mailing list