Fixed crash on destruction of animating QDockWidget in a QMainWindow
[profile/ivi/qtbase.git] / src / widgets / widgets / qwidgetanimator.cpp
index edd9d63..aef967b 100644 (file)
@@ -59,7 +59,9 @@ void QWidgetAnimator::abort(QWidget *w)
         return;
     QPropertyAnimation *anim = *it;
     m_animation_map.erase(it);
-    anim->stop();
+    if (anim) {
+        anim->stop();
+    }
 #ifndef QT_NO_MAINWINDOW
     m_mainWindowLayout->animationFinished(w);
 #endif