On 03/03/15 16:55, Ralf Junker wrote:
libcss may leak memory if css_stylesheet_data_done()
> is not called. See the attached source for an example.
Hi Ralf, thanks for pointing this out.
I agree, the API does not make it clear that you must call _data_done
before _destroy if you want to abort.
I need to check that adding unref_interned_strings_in_tokens(parser);
in css__parser_destroy does not introduce an attempt to unref token
strings twice in the case where both _data_done and _destroy are called.
I'll try to look into it soon.
Cheers,
--
Michael Drake http://www.smoothartist.com/