summaryrefslogtreecommitdiffstats
path: root/examples/mapsdemo/marker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mapsdemo/marker.cpp')
-rw-r--r--examples/mapsdemo/marker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/mapsdemo/marker.cpp b/examples/mapsdemo/marker.cpp
index 1c99958b93..28053fa9a9 100644
--- a/examples/mapsdemo/marker.cpp
+++ b/examples/mapsdemo/marker.cpp
@@ -247,6 +247,7 @@ void MarkerManager::removeSearchMarkers()
{
foreach (Marker *m, d->searchMarkers) {
d->map->removeMapObject(m);
+ d->searchMarkers.removeOne(m);
delete m;
}
}