From 33390e1184dee500152c4a78c2f14631544cbd63 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 24 Nov 2005 15:50:22 +0000 Subject: [PATCH] Fix for Bug GVIEW10644 animation causes SIGSEGV error while loading sandia file --- src/VISU_I/VISU_TimeAnimation.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index cacc4046..052eca5d 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -77,6 +77,11 @@ VISU_TimeAnimation::VISU_TimeAnimation (_PTR(Study) theStudy, //************************************************************************ VISU_TimeAnimation::~VISU_TimeAnimation() { + if (!myView) { + MESSAGE("Viewer is not defined for animation"); + return; + } + for (int i = 0; i < getNbFields(); i++) { clearData(myFieldsLst[i]); } -- 2.39.2