[glide] Fix crash when AnimationInfo has a null Animation...probably shouldn't happen in new files
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Fix crash when AnimationInfo has a null Animation...probably shouldn't happen in new files
- Date: Fri, 7 May 2010 15:41:33 +0000 (UTC)
commit 3bdaee6703c00e16184866ed48184dbec81df7fe
Author: Robert Carr <racarr Valentine localdomain>
Date: Fri May 7 11:26:59 2010 -0400
Fix crash when AnimationInfo has a null Animation...probably shouldn't happen in new files
libglide/glide-stage-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libglide/glide-stage-manager.c b/libglide/glide-stage-manager.c
index 4f77601..8bbe28b 100644
--- a/libglide/glide-stage-manager.c
+++ b/libglide/glide-stage-manager.c
@@ -291,7 +291,7 @@ glide_stage_manager_advance_slide (GlideStageManager *manager)
a_info = glide_slide_get_animation (a);
- if (!a_info || !strcmp(a_info->animation->name, "None"))
+ if (!a_info || !a_info->animation ||!strcmp(a_info->animation->name, "None"))
{
glide_stage_manager_set_slide_next (manager);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]