X-Git-Url: https://code.delx.au/refind/blobdiff_plain/dfa921b680497937566695dfefd20a8751947c51..4c9f41e161bd197922912efbcf4cc676077d5c00:/refind/icns.c diff --git a/refind/icns.c b/refind/icns.c index 1bc3202..f9be58b 100644 --- a/refind/icns.c +++ b/refind/icns.c @@ -38,6 +38,7 @@ #include "lib.h" #include "icns.h" #include "config.h" +#include "../refind/screen.h" // // well-known icons @@ -100,8 +101,10 @@ EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconNam // try to load it Image = egLoadIcon(SelfDir, FileName, 128); - if (Image != NULL) + if (Image != NULL) { + FreePool(CutoutName); return Image; + } FreePool(CutoutName); } // while @@ -160,7 +163,7 @@ EG_IMAGE * DummyImage(IN UINTN PixelSize) } YPtr += LineOffset; } - + return Image; }