[server] Safety measure to prevent potential leaks

This commit is contained in:
elpaso 2016-02-23 10:47:12 +01:00
parent f986d74cb8
commit b97e86da41

View File

@ -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;