mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[server][bugfix] Prevent potential crash
This commit is contained in:
parent
c7cde461b2
commit
f986d74cb8
@ -43,6 +43,7 @@ QgsHttpRequestHandler::QgsHttpRequestHandler( const bool captureOutput )
|
||||
|
||||
QgsHttpRequestHandler::~QgsHttpRequestHandler()
|
||||
{
|
||||
delete mException;
|
||||
}
|
||||
|
||||
void QgsHttpRequestHandler::setHttpResponse( QByteArray *ba, const QString &format )
|
||||
@ -455,7 +456,7 @@ void QgsHttpRequestHandler::setGetFeatureInfoResponse( const QDomDocument& infoD
|
||||
|
||||
void QgsHttpRequestHandler::setServiceException( QgsMapServiceException ex )
|
||||
{
|
||||
mException = &ex;
|
||||
mException = new QgsMapServiceException( ex );
|
||||
//create Exception DOM document
|
||||
QDomDocument exceptionDoc;
|
||||
QDomElement serviceExceptionReportElem = exceptionDoc.createElement( "ServiceExceptionReport" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user