Skip to content
Permalink
Browse files

Fix a memory leak

  • Loading branch information
nyalldawson committed Jun 30, 2017
1 parent fe800e2 commit 45538dff14ccce1ed8be7faf845c8d7337815e11
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/annotations/qgstextannotation.cpp
@@ -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();
}

0 comments on commit 45538df

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