summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-10-30 10:07:10 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-10-30 10:11:13 +0200
commitd430a517683096a79289ff71f942e9021868de35 (patch)
tree49828fab21d1c4edecb47cffb6247bde91967a2f /src
parent8abb93bef689861a768defa6ba7cc3c25c67be8b (diff)
Fix crash on application shutdown.
Label items should not try to delete their textures at destructor if they are already deleted. Change-Id: I8131301bec47a0a2617b4a923d7cce430d35e18b Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/datavisualization/data/labelitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/data/labelitem.cpp b/src/datavisualization/data/labelitem.cpp
index ec8ba3fd..98c92854 100644
--- a/src/datavisualization/data/labelitem.cpp
+++ b/src/datavisualization/data/labelitem.cpp
@@ -28,7 +28,7 @@ LabelItem::LabelItem()
LabelItem::~LabelItem()
{
- QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &m_textureId);
+ clear();
}
void LabelItem::setSize(const QSize &size)