diff options
| author | chr <chr> | 2017-05-18 17:58:59 +0000 |
|---|---|---|
| committer | chr <chr> | 2017-05-18 17:58:59 +0000 |
| commit | 6c05c1c14cb8d29fb06d6779ec9817615c518ab5 (patch) | |
| tree | c2d27beedaeb56110dcd5b1ab325df8e76d16917 /src/selection-chemistry.cpp | |
| parent | bugfix crash while moving objects (diff) | |
| download | inkscape-6c05c1c14cb8d29fb06d6779ec9817615c518ab5.tar.gz inkscape-6c05c1c14cb8d29fb06d6779ec9817615c518ab5.zip | |
fix a brunch of memory leaks
(bzr r15698.1.2)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 5d585ab5d..39846ba2c 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -3175,8 +3175,11 @@ void ObjectSet::toSymbol() the_parent_repr->appendChild(clone); if( single_group && transform.isTranslation() ) { - if( !transform.isIdentity() ) - clone->setAttribute("transform", sp_svg_transform_write( transform )); + if( !transform.isIdentity() ) { + gchar *c = sp_svg_transform_write( transform ); + clone->setAttribute("transform", c); + g_free(c); + } } // Change selection to new <use> element. |
