#include "lib.h"
#include "icns.h"
#include "config.h"
+#include "../refind/screen.h"
//
// well-known icons
{ NULL, L"tool_shell.icns", 48 },
{ NULL, L"tool_part.icns", 48 },
{ NULL, L"tool_rescue.icns", 48 },
+ { NULL, L"tool_apple_rescue.icns", 48 },
+ { NULL, L"tool_mok_tool.icns", 48 },
{ NULL, L"vol_internal.icns", 32 },
{ NULL, L"vol_external.icns", 32 },
{ NULL, L"vol_optical.icns", 32 },
// try to load it
Image = egLoadIcon(SelfDir, FileName, 128);
- if (Image != NULL)
+ if (Image != NULL) {
+ MyFreePool(CutoutName);
return Image;
- FreePool(CutoutName);
+ }
+ MyFreePool(CutoutName);
} // while
// try the fallback name