We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4699513 commit 1e310b4Copy full SHA for 1e310b4
imagequant/__init__.py
@@ -125,6 +125,9 @@ def quantize_raw_rgba_bytes(
125
liq_result_p = ffi.new("liq_result**")
126
code = lib.liq_image_quantize(liq_image, liq_attr, liq_result_p)
127
if code != lib.LIQ_OK:
128
+ lib.liq_result_destroy(liq_result_p[0])
129
+ lib.liq_image_destroy(liq_image)
130
+ lib.liq_attr_destroy(liq_attr)
131
raise RuntimeError(_get_error_msg(code))
132
lib.liq_set_dithering_level(liq_result_p[0], dithering_level)
133
0 commit comments