diff options
Diffstat (limited to 'apps/gui')
-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, | |||
205 | ic->handle_locked = 0; | 205 | ic->handle_locked = 0; |
206 | 206 | ||
207 | /* free unused alpha channel, if any */ | 207 | /* free unused alpha channel, if any */ |
208 | core_shrink(ic->handle, ic->bmp.data, size_read); | 208 | core_shrink(ic->handle, ic->bmp.data, size_read > 0 ? size_read : 0); |
209 | 209 | ||
210 | if (size_read <= 0) | 210 | if (size_read <= 0) |
211 | ic->handle = core_free(ic->handle); | 211 | ic->handle = core_free(ic->handle); |