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:
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));
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user