Revision eca7db46 json-streamer.c

b/json-streamer.c
65 65
        parser->emit(parser, parser->tokens);
66 66
        QDECREF(parser->tokens);
67 67
        parser->tokens = qlist_new();
68
        parser->token_size = 0;
68 69
    } else if (parser->token_size > MAX_TOKEN_SIZE ||
69 70
               parser->bracket_count > MAX_NESTING ||
70 71
               parser->brace_count > MAX_NESTING) {
......
76 77
        parser->emit(parser, parser->tokens);
77 78
        QDECREF(parser->tokens);
78 79
        parser->tokens = qlist_new();
80
        parser->token_size = 0;
79 81
    }
80 82
}
81 83

  

Also available in: Unified diff