fix memory leak on rendering
This commit is contained in:
parent
0572310343
commit
e3d0ff23be
1 changed files with 2 additions and 0 deletions
|
@ -824,6 +824,8 @@ ResultPublisher* searchObjectsForRendering(SearchQuery* q, bool skipDuplicates,
|
||||||
}
|
}
|
||||||
if (q->zoom <= BASEMAP_ZOOM || emptyData) {
|
if (q->zoom <= BASEMAP_ZOOM || emptyData) {
|
||||||
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
|
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
|
||||||
|
} else {
|
||||||
|
deleteObjects(basemapResult);
|
||||||
}
|
}
|
||||||
q->publisher->result.clear();
|
q->publisher->result.clear();
|
||||||
q->publisher->publish(tempResult);
|
q->publisher->publish(tempResult);
|
||||||
|
|
Loading…
Reference in a new issue