[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3484: Apparently GeoDataLineString doesn't take ownership of GeoDa (vidalia/branches/marble/src/vidalia/network)



Author: edmanm
Date: 2009-01-30 22:39:39 -0500 (Fri, 30 Jan 2009)
New Revision: 3484

Modified:
   vidalia/branches/marble/src/vidalia/network/tormapwidget.cpp
Log:

Apparently GeoDataLineString doesn't take ownership of GeoDataCoordinates
objects appended to it.


Modified: vidalia/branches/marble/src/vidalia/network/tormapwidget.cpp
===================================================================
--- vidalia/branches/marble/src/vidalia/network/tormapwidget.cpp	2009-01-31 03:14:27 UTC (rev 3483)
+++ vidalia/branches/marble/src/vidalia/network/tormapwidget.cpp	2009-01-31 03:39:39 UTC (rev 3484)
@@ -138,7 +138,7 @@
   CircuitGeoPath *path = _circuits.take(circid);
   if (path) {
     GeoDataLineString coords = path->first;
-    coords.erase(coords.begin(), coords.end());
+    qDeleteAll(coords.begin(), coords.end());
     delete path;
   }
 
@@ -201,7 +201,7 @@
   foreach (CircuitId circid, _circuits.keys()) {
     CircuitGeoPath *path = _circuits.take(circid);
     GeoDataLineString coords = path->first;
-    coords.erase(coords.begin(), coords.end());
+    qDeleteAll(coords.begin(), coords.end());
     delete path;
   }