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) {
|
||||
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
|
||||
} else {
|
||||
deleteObjects(basemapResult);
|
||||
}
|
||||
q->publisher->result.clear();
|
||||
q->publisher->publish(tempResult);
|
||||
|
|
Loading…
Reference in a new issue