Browse Source

Remove an incorrect usage of Py_XDECREF().

tags/v0.4
Ben Kurtovic 10 years ago
parent
commit
5d29bff918
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      mwparserfromhell/parser/tokenizer.c

+ 1
- 4
mwparserfromhell/parser/tokenizer.c View File

@@ -676,11 +676,8 @@ static int Tokenizer_parse_template_or_argument(Tokenizer* self)
RESET_ROUTE(); RESET_ROUTE();
for (i = 0; i < braces; i++) text[i] = '{'; for (i = 0; i < braces; i++) text[i] = '{';
text[braces] = '\0'; text[braces] = '\0';
if (Tokenizer_emit_text_then_stack(self, text)) {
Py_XDECREF(text);
if (Tokenizer_emit_text_then_stack(self, text))
return -1; return -1;
}
Py_XDECREF(text);
return 0; return 0;
} }
else else


Loading…
Cancel
Save