diff --git a/src/file/ico_format.cpp b/src/file/ico_format.cpp index a242fae27..4ac970e44 100644 --- a/src/file/ico_format.cpp +++ b/src/file/ico_format.cpp @@ -165,6 +165,7 @@ static bool load_ICO(FileOp *fop) } sprite->setPalette(pal, true); + delete pal; } // Read XOR MASK