Skip to content

Commit

Permalink
[server][bugfix] Prevent potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 23, 2016
1 parent c7cde46 commit f986d74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/qgshttprequesthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ QgsHttpRequestHandler::QgsHttpRequestHandler( const bool captureOutput )

QgsHttpRequestHandler::~QgsHttpRequestHandler()
{
delete mException;
}

void QgsHttpRequestHandler::setHttpResponse( QByteArray *ba, const QString &format )
Expand Down Expand Up @@ -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" );
Expand Down

0 comments on commit f986d74

Please sign in to comment.