Skip to content

Commit

Permalink
QgsArchive: reinitialize mDir in copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 1, 2020
1 parent 0f57abe commit 693baf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsarchive.cpp
Expand Up @@ -43,7 +43,10 @@ QgsArchive::QgsArchive( const QgsArchive &other )
QgsArchive &QgsArchive::operator=( const QgsArchive &other )
{
if ( this != &other )
{
mFiles = other.mFiles;
mDir.reset( new QTemporaryDir() );
}

return *this;
}
Expand Down

0 comments on commit 693baf0

Please sign in to comment.