aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-05-09 10:39:10 +0200
committerJoel Bodenmann <joel@unormal.org>2014-05-09 10:39:10 +0200
commita9ead70e09ab3cc227b72f3dcd56d03b24f3b53d (patch)
tree6c74e25b25a78a043dc21b14da2fda31c3126bdd
parent5979acc7f6f1b2d2c76ff80c651b78516335b567 (diff)
downloaduGFX-a9ead70e09ab3cc227b72f3dcd56d03b24f3b53d.tar.gz
uGFX-a9ead70e09ab3cc227b72f3dcd56d03b24f3b53d.tar.bz2
uGFX-a9ead70e09ab3cc227b72f3dcd56d03b24f3b53d.zip
Imagebox widget bug fix that could cause gwinImageOpenFile() to crash
-rw-r--r--docs/releases.txt1
-rw-r--r--src/gwin/gimage.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/releases.txt b/docs/releases.txt
index 859c7edd..511208f9 100644
--- a/docs/releases.txt
+++ b/docs/releases.txt
@@ -33,6 +33,7 @@ FEATURE: Added vs1053 audio play driver
FEATURE: Added GAUDIO wave-play demo
FEATURE: Added many GWIN simple demo's and updated the combined widget demo
FEATURE: Added gwinEnable() and gwinDisable()
+FIX: Imagebox widget bugfix that could cause gwinImageOpenFile() to crash
*** changes after 1.9 ***
diff --git a/src/gwin/gimage.c b/src/gwin/gimage.c
index fdc6df84..44ba785a 100644
--- a/src/gwin/gimage.c
+++ b/src/gwin/gimage.c
@@ -128,6 +128,7 @@ GHandle gwinGImageCreate(GDisplay *g, GImageObject *gobj, GWindowInit *pInit) {
// Ensure the gdispImageIsOpen() gives valid results
gobj->image.type = 0;
+ gobj->image.fns = 0;
// Initialise the timer
#if GWIN_NEED_IMAGE_ANIMATION