diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 17:26:56 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 17:26:56 +0100 |
commit | 887946bff8e11953194e4792e07e34f0c3361422 (patch) | |
tree | ad7a7c6a4af2241945792f084cc77d74a596841b | |
parent | a7d7bf6dbf96623c60754634bb8670257d001b54 (diff) |
fix monstrous memory leak in StyleEngine::startElement()
-rw-r--r-- | src/styleengine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 09a90866..75d1d425 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -55,7 +55,7 @@ void StyleEngine::startElement (int element) { if (stack->getRef (stack->size () - 1)->style == NULL) style0 (); - stack->increase (); + stack->setSize (stack->size () + 1); Node *n = stack->getRef (stack->size () - 1); n->style = NULL; n->depth = stack->size () - 1; |