Skip to content

Commit 8732cbf

Browse files
committedOct 19, 2014
Fix Qt warning caused by destructor of QgsNetworkContentFetcher
1 parent 0c4e8e6 commit 8732cbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/core/qgsnetworkcontentfetcher.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ QgsNetworkContentFetcher::~QgsNetworkContentFetcher()
3737
//cancel running request
3838
mReply->abort();
3939
}
40-
mReply->deleteLater();
40+
if ( mReply )
41+
{
42+
mReply->deleteLater();
43+
}
4144
}
4245

4346
void QgsNetworkContentFetcher::fetchContent( const QUrl url )

0 commit comments

Comments
 (0)
Please sign in to comment.