Skip to content
Permalink
Browse files

Fix incorrect error handling in QgsCircularStringV2* parseCircularString

  • Loading branch information
manisandro committed Jun 6, 2016
1 parent e422d89 commit 197a00ab6202bd3743ef73ad2e2c564eb6d02d48
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/arcgisrest/qgsarcgisrestutils.cpp
@@ -125,7 +125,7 @@ static QgsCircularStringV2* parseCircularString( const QVariantMap& curveData, Q
foreach ( const QVariant& coordData, coordsList )
{
QgsPointV2* point = parsePoint( coordData.toList(), pointType );
if ( points.last() == 0 )
if ( !point )
{
delete point;

This comment has been minimized.

Copy link
@nyalldawson

nyalldawson Jun 6, 2016

Collaborator

@manisandro may as well get rid of this line now ;)

return nullptr;

1 comment on commit 197a00a

@manisandro

This comment has been minimized.

Copy link
Member Author

@manisandro manisandro commented on 197a00a Jun 6, 2016

Ah, yeah ;)

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