Skip to content

Commit

Permalink
export exception when undo resource limit exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 20, 2024
1 parent eca6974 commit 821c82f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions magick/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -6391,6 +6391,8 @@ static void XImageCache(Display *display,XResourceInfo *resource_info,
if (undo_image == (Image *) NULL)
{
(void) XBell(display,0);
ThrowXWindowException(ImageError,"NoImagesWereFound",
(*image)->filename);
return;
}
cache_image=undo_image;
Expand Down Expand Up @@ -10165,8 +10167,8 @@ static Image *XOpenImage(Display *display,XResourceInfo *resource_info,
if (filelist == (char **) NULL)
{
(void) XFreeStringList(files);
ThrowXWindowException(ResourceLimitError,
"MemoryAllocationFailed","...");
ThrowXWindowException(ResourceLimitError,"MemoryAllocationFailed",
"...");
return((Image *) NULL);
}
j=0;
Expand Down

0 comments on commit 821c82f

Please sign in to comment.