projects
/
imager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add new comparison method rgb_difference that resembles arithmetical difference per...
[imager.git]
/
palimg.c
diff --git
a/palimg.c
b/palimg.c
index b32c0d493d6468c666a70726ab0229809c61c39b..0c37b582219d6359ed641fe3906ebb87597ce628 100644
(file)
--- a/
palimg.c
+++ b/
palimg.c
@@
-205,10
+205,12
@@
i_img_to_rgb_inplace(i_img *im) {
i_img_rgb_convert(&temp, im);
/* nasty hack */
- (im->i_f_destroy)(im);
- myfree(im->idata);
+ i_img_exorcise(im);
*im = temp;
+ /* i_img_empty_ch() calls i_img_init() which takes a ref */
+ im_context_refdec(aIMCTX, "img_destroy");
+
return 1;
}