1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 17:32:29 +01:00

Coverity: fix wmiv resource leak

This commit is contained in:
David Maciejak
2023-02-28 21:24:33 +08:00
committed by Carlos R. Mafra
parent d2d5297a1e
commit 76fa91d21e

View File

@@ -435,6 +435,7 @@ int zoom_in_out(int z)
tmp->height + (int)(tmp->height * zoom_factor)); tmp->height + (int)(tmp->height * zoom_factor));
if (!img) { if (!img) {
img = old_img; img = old_img;
RReleaseImage(tmp);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} else { } else {
@@ -449,6 +450,7 @@ int zoom_in_out(int z)
img = RScaleImage(tmp, new_width, new_height); img = RScaleImage(tmp, new_width, new_height);
if (!img) { if (!img) {
img = old_img; img = old_img;
RReleaseImage(tmp);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }