Fix memory leak.

Change-Id: I7d308a869fdc729bd46ace336b71c7e30556d65d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
Sérgio Martins 2013-04-12 20:27:16 +01:00 committed by The Qt Project
parent 67bd27fee2
commit cbde509965

View File

@ -316,6 +316,8 @@ void QOpenGLBuffer::destroy()
d->guard->free();
d->guard = 0;
}
delete d->funcs;
d->funcs = 0;
}
/*!