Delete the d_ptr in the destructor

The d_ptr variable is introduced by QGLCustomShaderStage and
needs to be fully handled by it. Delete the d_ptr in the dtor

Fixes Coverity CID #10995.

Change-Id: I76bf05206acf23363419afc95094f5593e808a2e
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
bb10
Holger Hans Peter Freyther 2015-06-08 08:52:12 +02:00 committed by Laszlo Agocs
parent ef21a8dea3
commit 8b81f89dff
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ QGLCustomShaderStage::~QGLCustomShaderStage()
d->m_manager->removeCustomStage();
d->m_manager->sharedShaders->cleanupCustomStage(this);
}
delete d_ptr;
}
void QGLCustomShaderStage::setUniformsDirty()