diff --git a/src/gui/opengl/qopenglbuffer.cpp b/src/gui/opengl/qopenglbuffer.cpp index 87cb4cd93df..d70f3264150 100644 --- a/src/gui/opengl/qopenglbuffer.cpp +++ b/src/gui/opengl/qopenglbuffer.cpp @@ -316,6 +316,8 @@ void QOpenGLBuffer::destroy() d->guard->free(); d->guard = 0; } + delete d->funcs; + d->funcs = 0; } /*!