diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-01-30 16:17:17 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:36:52 +0300 |
commit | c23a1907cdcf70d06c29017a7a5a685502623baa (patch) | |
tree | beab6d47e0bcef53699393936d47299fb821e9a0 /map/track.hpp | |
parent | 868359ba1f2d4b68eecee102c3a768f76892afca (diff) |
Crash and memory leak was fixed.
Diffstat (limited to 'map/track.hpp')
-rw-r--r-- | map/track.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/map/track.hpp b/map/track.hpp index d95dd16994..a97520ec89 100644 --- a/map/track.hpp +++ b/map/track.hpp @@ -61,8 +61,8 @@ public: virtual void Draw(graphics::Screen * pScreen, MatrixT const & matrix) const; virtual void CreateDisplayList(graphics::Screen * dlScreen, MatrixT const & matrix, bool isScaleChanged, int, double, location::RouteMatchingInfo const &) const; - void DeleteDisplayList() const; - bool HasDisplayList() const { return m_dList != nullptr; } + virtual void CleanUp() const; + virtual bool HasDisplayLists() const; /// @name Simple Getters-Setter //@{ @@ -90,6 +90,7 @@ protected: void SetDisplayList(graphics::DisplayList * dl) const { m_dList = dl; } void CreateDisplayListPolyline(graphics::Screen * dlScreen, PointContainerT const & pts2) const; void Swap(Track & rhs); + void DeleteDisplayList() const; private: bool m_isVisible = false; |