fix memory leak on rendering

This commit is contained in:
Jindřich Makovička 2012-05-13 16:52:58 +02:00
parent 0572310343
commit e3d0ff23be

View file

@ -824,6 +824,8 @@ ResultPublisher* searchObjectsForRendering(SearchQuery* q, bool skipDuplicates,
}
if (q->zoom <= BASEMAP_ZOOM || emptyData) {
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
} else {
deleteObjects(basemapResult);
}
q->publisher->result.clear();
q->publisher->publish(tempResult);