From f0e7bde89e3ad72259ef9dabe7db5c2db7ea119b Mon Sep 17 00:00:00 2001 From: ahcorde Date: Thu, 27 May 2021 15:16:19 +0200 Subject: [PATCH] Avoid grid3D crash Signed-off-by: ahcorde --- src/plugins/grid_3d/Grid3D.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/grid_3d/Grid3D.cc b/src/plugins/grid_3d/Grid3D.cc index 8bc57e27b..d9072ae67 100644 --- a/src/plugins/grid_3d/Grid3D.cc +++ b/src/plugins/grid_3d/Grid3D.cc @@ -88,11 +88,11 @@ namespace plugins class Grid3DPrivate { /// brief Parent window - public: QQuickWindow *quickWindow; + public: QQuickWindow *quickWindow = nullptr; /// \brief We keep a pointer to the engine and rely on it not being /// destroyed, since it is a singleton. - public: rendering::RenderEngine *engine; + public: rendering::RenderEngine *engine = nullptr; /// \brief We keep the scene name rather than a shared pointer because we /// don't want to share ownership.