Preemptively release pendingMapObjects upon Map destruction


In this way QGeoMap::mapObjects doesn't have to return all map objects,
as the user added ones should be covered by m_pendingMapObjects.

Change-Id: I5c850f2fb820629e0c4dd941d13f04cb3684b898
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
commite077ad0f5fb4a9513d9cd778e5cbb6b6d38ae026
parent912e7eaf9a044941f7f351d8fe2dfdec71760f73
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerBogDan Vatra <bogdan@kdab.com>
commit timeThu, 8 Feb 2018 13:46:42 +0000