projects
/
konrad/qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
eea254f
)
Set ptr to zero after freeing memory
author
Chris Adams
<christopher.adams@nokia.com>
Fri, 27 Apr 2012 07:42:06 +0000 (17:42 +1000)
committer
Qt by Nokia
<qt-info@nokia.com>
Fri, 4 May 2012 00:36:27 +0000 (
02:36
+0200)
This commit ensures that we set the notifyList to zero after
freeing it, to avoid possibility of dereferencing freed memory.
Change-Id: I0ce90507ad209748642a218608e118e5034bfabd
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlengine.cpp
patch
|
blob
|
history
diff --git
a/src/qml/qml/qqmlengine.cpp
b/src/qml/qml/qqmlengine.cpp
index
7cb766b
..
c79e756
100644
(file)
--- a/
src/qml/qml/qqmlengine.cpp
+++ b/
src/qml/qml/qqmlengine.cpp
@@
-1225,6
+1225,7
@@
void QQmlData::destroyed(QObject *object)
}
free(notifyList->notifies);
free(notifyList);
+ notifyList = 0;
}
if (extendedData)