diff options
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r-- | apps/gui/icon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 25c0b372fa..46126e830b 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -205,7 +205,7 @@ static void load_icons(const char* filename, enum Iconset iconset, ic->handle_locked = 0; /* free unused alpha channel, if any */ - core_shrink(ic->handle, ic->bmp.data, size_read); + core_shrink(ic->handle, ic->bmp.data, size_read > 0 ? size_read : 0); if (size_read <= 0) ic->handle = core_free(ic->handle); |