diff options
| author | buliabyak <> | 2013-09-28 14:04:26 +0000 |
|---|---|---|
| committer | buliabyak <> | 2013-09-28 14:04:26 +0000 |
| commit | 45bdb1d8bdfe52de31ca28a2a26d4d1204bb9961 (patch) | |
| tree | 10369bcb71a2da201cb79b1ca92e51e49728296e /src/sp-flowtext.cpp | |
| parent | leak fixes: free marker value on delete; free the return value of uri's toStr... (diff) | |
| download | inkscape-45bdb1d8bdfe52de31ca28a2a26d4d1204bb9961.tar.gz inkscape-45bdb1d8bdfe52de31ca28a2a26d4d1204bb9961.zip | |
on hiding, texts must _clearFlow to release arena items, otherwise they leak
(bzr r12608)
Diffstat (limited to 'src/sp-flowtext.cpp')
| -rw-r--r-- | src/sp-flowtext.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index 88564c0ac..266e9dfe0 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -326,7 +326,12 @@ Inkscape::DrawingItem* SPFlowtext::show(Inkscape::Drawing &drawing, unsigned int } void SPFlowtext::hide(unsigned int key) { - SPItem::hide(key); + for (SPItemView* v = this->display; v != NULL; v = v->next) { + if (v->key == key) { + Inkscape::DrawingGroup *g = dynamic_cast<Inkscape::DrawingGroup *>(v->arenaitem); + this->_clearFlow(g); + } + } } |
