Skip to content

Commit

Permalink
Fix a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 30, 2017
1 parent fe800e2 commit 45538df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/annotations/qgstextannotation.cpp
Expand Up @@ -30,7 +30,7 @@ QgsTextAnnotation *QgsTextAnnotation::clone() const
{
std::unique_ptr< QgsTextAnnotation > c( new QgsTextAnnotation() );
copyCommonProperties( c.get() );
c->setDocument( mDocument ? mDocument->clone() : nullptr );
c->setDocument( mDocument.get() );
return c.release();
}

Expand Down

0 comments on commit 45538df

Please sign in to comment.