Skip to content

Commit

Permalink
[server] Safety measure to prevent potential leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 23, 2016
1 parent f986d74 commit b97e86d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/qgshttprequesthandler.cpp
Expand Up @@ -456,6 +456,8 @@ void QgsHttpRequestHandler::setGetFeatureInfoResponse( const QDomDocument& infoD

void QgsHttpRequestHandler::setServiceException( QgsMapServiceException ex )
{
// Safety measure to avoid potential leaks if called repeatedly
delete mException;
mException = new QgsMapServiceException( ex );
//create Exception DOM document
QDomDocument exceptionDoc;
Expand Down

0 comments on commit b97e86d

Please sign in to comment.