Skip to content

Commit

Permalink
AGI: Fix small memory leak in Hercules font loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjörn Andersson committed Feb 28, 2016
1 parent 0caef5d commit 9d4216e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/agi/font.cpp
Expand Up @@ -1232,6 +1232,7 @@ void GfxFont::loadFontHercules() {
fontData += 4; // skip the last 2 lines
}

free(rawData);
} else {
warning("Fontfile 'hgc_font': unexpected file size");
}
Expand Down

0 comments on commit 9d4216e

Please sign in to comment.