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-text.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-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 72a5996d1..c515828a4 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -318,7 +318,12 @@ Inkscape::DrawingItem* SPText::show(Inkscape::Drawing &drawing, unsigned key, un void SPText::hide(unsigned int key) { -// SPItem::onHide(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); + } + } } const char* SPText::displayName() { |
