From 4a29723e1551fd59f46457a3baca7abd003f6e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Str=C3=B8mme?= Date: Wed, 6 Jun 2018 11:53:12 +0200 Subject: Delete slide animator This is a partial revert of b9b13f7c0a6, as just removing the animator from the entity doesn't seem to be sufficient. Change-Id: I56f9e572bf77d53e1f5befea256973e251bbc1ef Reviewed-by: Laszlo Agocs --- src/runtime/q3dsslideplayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime/q3dsslideplayer.cpp b/src/runtime/q3dsslideplayer.cpp index 9e4b142..a154292 100644 --- a/src/runtime/q3dsslideplayer.cpp +++ b/src/runtime/q3dsslideplayer.cpp @@ -130,6 +130,9 @@ static void detatchPositionCallback(Q3DSSlide *slide) if (animator) { Q_ASSERT(!animator->isRunning()); slide->attached()->entity->removeComponent(animator); + // TODO: Figure out why this is needed. + data->animator = nullptr; + delete animator; } } -- cgit v1.2.3