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:
committed by
Carlos R. Mafra
parent
d2d5297a1e
commit
76fa91d21e
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user