Skip to content

Commit b97e86d

Browse files
committedFeb 23, 2016
[server] Safety measure to prevent potential leaks
1 parent f986d74 commit b97e86d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/server/qgshttprequesthandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ void QgsHttpRequestHandler::setGetFeatureInfoResponse( const QDomDocument& infoD
456456

457457
void QgsHttpRequestHandler::setServiceException( QgsMapServiceException ex )
458458
{
459+
// Safety measure to avoid potential leaks if called repeatedly
460+
delete mException;
459461
mException = new QgsMapServiceException( ex );
460462
//create Exception DOM document
461463
QDomDocument exceptionDoc;

0 commit comments

Comments
 (0)
Please sign in to comment.