Skip to content
Permalink
Browse files

Fix crash in QgsNetworkContentFetcherRegistry

  • Loading branch information
nyalldawson committed May 31, 2018
1 parent 37b06bc commit e8515d86ee9edf25ca79238854796f1e00e1c359
@@ -39,6 +39,7 @@ FetchedContent holds useful information about a network content being fetched
%Docstring
Constructs a FetchedContent with pointer to the downloaded file and status of the download
%End

~QgsFetchedContent();


@@ -55,11 +55,16 @@ class CORE_EXPORT QgsFetchedContent : public QObject

//! Constructs a FetchedContent with pointer to the downloaded file and status of the download
explicit QgsFetchedContent( const QString &url, QTemporaryFile *file = nullptr, ContentStatus status = NotStarted )
: QObject(), mUrl( url ), mFile( file ), mStatus( status ) {}
: QObject()
, mUrl( url )
, mFile( file )
, mStatus( status )
{}

~QgsFetchedContent()
{
mFile->close();
if ( mFile )
mFile->close();
delete mFile;
}

0 comments on commit e8515d8

Please sign in to comment.
You can’t perform that action at this time.