aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Kumar <abhishek@kumar>2013-05-21 14:00:17 +0700
committerAbhishek Kumar <abhishek@kumar>2013-05-21 14:00:17 +0700
commit4e7c1b00caecba9e2dca16aab3ec5c16973dd93c (patch)
tree927dfe496f7c44e43ecb60f09284cc3fcf07caa4
parent86951a8b2ff976e7b8eaa47f6b62347ab71260e8 (diff)
downloaduGFX-4e7c1b00caecba9e2dca16aab3ec5c16973dd93c.tar.gz
uGFX-4e7c1b00caecba9e2dca16aab3ec5c16973dd93c.tar.bz2
uGFX-4e7c1b00caecba9e2dca16aab3ec5c16973dd93c.zip
Fix GIF rendering issue
Uninitialized cache values causes stability issues in systems Cache initialized to 0 fixes it.
-rw-r--r--src/gdisp/image_gif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c
index 2cf4c743..6c61219a 100644
--- a/src/gdisp/image_gif.c
+++ b/src/gdisp/image_gif.c
@@ -576,6 +576,8 @@ gdispImageError gdispImageOpen_GIF(gdispImage *img) {
priv->palsize = 0;
priv->palette = 0;
priv->frame.flags = 0;
+ priv->cache = 0;
+ priv->curcache = 0;
/* Process the Screen Descriptor structure */