projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9af11d
)
Fixed memory leak
author
Janne Kiiski
<janne.kiiski@ixonos.com>
Mon, 22 Nov 2010 15:11:07 +0000
(17:11 +0200)
committer
Janne Kiiski
<janne.kiiski@ixonos.com>
Mon, 22 Nov 2010 15:11:07 +0000
(17:11 +0200)
src/qmlui/geomap.cpp
patch
|
blob
|
history
diff --git
a/src/qmlui/geomap.cpp
b/src/qmlui/geomap.cpp
index
b734cc4
..
a56ec27
100644
(file)
--- a/
src/qmlui/geomap.cpp
+++ b/
src/qmlui/geomap.cpp
@@
-181,8
+181,11
@@
void GeoMap::onFriendModelReset()
Q_D(GeoMap);
Q_ASSERT(d->friendModel);
- foreach(QGeoMapPixmapObject* mapObject, d->friendMapObjects)
+ foreach(QGeoMapPixmapObject* mapObject, d->friendMapObjects) {
removeMapObject(mapObject);
+ delete mapObject;
+ }
+ d->friendMapObjects.clear();
for (int i=0; i < d->friendModel->rowCount(); ++i) {
const QModelIndex index = d->friendModel->index(i);