[Marble-commits] KDE/kdeedu/marble/src/lib/gps
Dennis Nienhüser
earthwings at gentoo.org
Fri Jan 1 17:58:54 CET 2010
SVN commit 1068592 by nienhueser:
PositionTracking derives from QObject and as such must not be destructed with delete. Instead, pass ourself as owner at construction time and let QObject handle the destruction.
CCBUG: 220236
M +1 -2 GpsLayer.cpp
--- trunk/KDE/kdeedu/marble/src/lib/gps/GpsLayer.cpp #1068591:1068592
@@ -37,7 +37,7 @@
// m_gpsTrack = new Track();
m_currentGpx = new GpxFile();
m_fileModel->addFile( m_currentGpx );
- m_tracking = new PositionTracking( m_currentGpx );
+ m_tracking = new PositionTracking( m_currentGpx, this );
}
@@ -45,7 +45,6 @@
{
// leaks m_fileModel, see comment in clearModel()
delete m_currentPosition;
- delete m_tracking;
delete m_currentGpx;
}
More information about the Marble-commits
mailing list