From 557c7854bc1a1a8c02c73c9079c47219aa557c8b Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 5 Jun 2015 01:05:35 -0300 Subject: [PATCH] Fix random crash using Eyedropper with Alt+click This was a problem related to uninitialized memory in Render class. The Render::renderLayer() member function was accessing to an invalid m_previewImage pointer. --- src/render/render.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/render.cpp b/src/render/render.cpp index 8b67bbc4c..1e835e67d 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -328,6 +328,9 @@ Render::Render() , m_bgType(BgType::TRANSPARENT) , m_bgCheckedSize(16, 16) , m_globalOpacity(255) + , m_selectedLayer(nullptr) + , m_selectedFrame(-1) + , m_previewImage(nullptr) , m_onionskinType(OnionskinType::NONE) { }