Commit 6f72d096 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Fix memory leak: Do not assign a temporary untracked line string

parent 088192e4
......@@ -17,7 +17,7 @@
using namespace Marble;
GeoTrackGraphicsItem::GeoTrackGraphicsItem( const GeoDataFeature *feature, const GeoDataTrack *track )
: GeoLineStringGraphicsItem( feature, new GeoDataLineString() )
: GeoLineStringGraphicsItem( feature, track->lineString() )
setTrack( track );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment