Skip to content
Permalink
Browse files

[server][bugfix] Prevent potential crash

  • Loading branch information
elpaso committed Feb 23, 2016
1 parent c7cde46 commit f986d74cb83d823ffd1b922731cec7f7b15d5f77
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/qgshttprequesthandler.cpp
@@ -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" );

0 comments on commit f986d74

Please sign in to comment.
You can’t perform that action at this time.