summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 17:26:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 17:26:56 +0100
commit887946bff8e11953194e4792e07e34f0c3361422 (patch)
treead7a7c6a4af2241945792f084cc77d74a596841b /src
parenta7d7bf6dbf96623c60754634bb8670257d001b54 (diff)
fix monstrous memory leak in StyleEngine::startElement()
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc2
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;