1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-02 04:10:20 +02:00

Explicitly call clear on the shared pointer in the playlistinterface destructor

This commit is contained in:
Jeff Mitchell
2011-12-10 02:27:32 -05:00
parent 8ffbebb2b6
commit ce13d7fed5
2 changed files with 2 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ Q_OBJECT
public: public:
explicit TrackProxyModel ( QObject* parent = 0 ); explicit TrackProxyModel ( QObject* parent = 0 );
virtual TrackModel* sourceModel() const { return m_model; } virtual TrackModel* sourceModel() const { return m_model; }
virtual void setSourceTrackModel( TrackModel* sourceModel ); virtual void setSourceTrackModel( TrackModel* sourceModel );
virtual void setSourceModel( QAbstractItemModel* model ); virtual void setSourceModel( QAbstractItemModel* model );

View File

@@ -30,6 +30,7 @@ PlaylistInterface::PlaylistInterface ( QObject *parent )
PlaylistInterface::~PlaylistInterface() PlaylistInterface::~PlaylistInterface()
{ {
m_sharedPtr.clear();
} }
result_ptr result_ptr