1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 23:39:42 +01: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:
explicit TrackProxyModel ( QObject* parent = 0 );
virtual TrackModel* sourceModel() const { return m_model; }
virtual void setSourceTrackModel( TrackModel* sourceModel );
virtual void setSourceModel( QAbstractItemModel* model );

View File

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