Explorar el Código

Remove an incorrect usage of Py_XDECREF().

tags/v0.4
Ben Kurtovic hace 9 años
padre
commit
5d29bff918
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. +1
    -4
      mwparserfromhell/parser/tokenizer.c

+ 1
- 4
mwparserfromhell/parser/tokenizer.c Ver fichero

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


Cargando…
Cancelar
Guardar