#include "lib.h"
#include "icns.h"
#include "config.h"
+#include "../refind/screen.h"
//
// well-known icons
// try to load it
Image = egLoadIcon(SelfDir, FileName, 128);
- if (Image != NULL)
+ if (Image != NULL) {
+ FreePool(CutoutName);
return Image;
+ }
FreePool(CutoutName);
} // while