]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: handle DOM_NO_MEM_ERR when setting user data
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 19 Oct 2024 21:43:44 +0000 (17:43 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 20 Oct 2024 21:40:11 +0000 (17:40 -0400)
commit051ee66c3445a9071db366ed55cfd606cb579ec7
treec7eff48d4473af2bb3b81d4e3861fff0579ff9da
parentfe0f044f15984ebb02e017ab1b691178175c4b78
src/svgtiny_css.c: handle DOM_NO_MEM_ERR when setting user data

In set_libcss_node_data(), the dom_node_set_user_data() function can
in fact return a "no memory" error. We now catch that and convert it
into a CSS_NOMEM.
src/svgtiny_css.c