]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: change lwc_string_destroy -> lwc_string_unref libcss
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 12:35:16 +0000 (07:35 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 12:35:16 +0000 (07:35 -0500)
commitaba890ce7bfda3965737e1639817732ceaac9fed
treea90c607070d522b2fed5f99514732621848ee56a
parent9be0e02afb4bd161a132d8ea98c0541a81189324
src/svgtiny_css.c: change lwc_string_destroy -> lwc_string_unref

In the node_is_lang() callback, we're interning "lang" and later
destroying it. But "lang" is already interned at that point (in
libcss), so we are destroying a copy that doesn't belong to us. It
should be unref'd instead. Valgrind detected the error. Thanks to
Michael Drake for the pointer.
src/svgtiny_css.c