projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15f1fe5
)
Fixed memory leak in assign operator of QGLBuffer
author
Vadim Zakondyrin
<thekondr@crystalnix.com>
Sat, 17 Nov 2012 03:39:14 +0000
(10:39 +0700)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Mon, 19 Nov 2012 22:21:13 +0000
(23:21 +0100)
Change-Id: Icb51dd5a567483b415ab0e8af9eb62221225890d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/opengl/qglbuffer.cpp
patch
|
blob
|
history
diff --git
a/src/opengl/qglbuffer.cpp
b/src/opengl/qglbuffer.cpp
index
5e503d9
..
acb13d6
100644
(file)
--- a/
src/opengl/qglbuffer.cpp
+++ b/
src/opengl/qglbuffer.cpp
@@
-211,8
+211,10
@@
QGLBuffer &QGLBuffer::operator=(const QGLBuffer &other)
{
if (d_ptr != other.d_ptr) {
other.d_ptr->ref.ref();
- if (!d_ptr->ref.deref())
+ if (!d_ptr->ref.deref())
{
destroy();
+ delete d_ptr;
+ }
d_ptr = other.d_ptr;
}
return *this;