mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[server] Safety measure to prevent potential leaks
This commit is contained in:
parent
f986d74cb8
commit
b97e86da41
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user