1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-25 07:32:36 +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));
if (!img) {
img = old_img;
RReleaseImage(tmp);
return EXIT_FAILURE;
}
} else {
@@ -449,6 +450,7 @@ int zoom_in_out(int z)
img = RScaleImage(tmp, new_width, new_height);
if (!img) {
img = old_img;
RReleaseImage(tmp);
return EXIT_FAILURE;
}
}