Author: adrian
Date: Fri Jan  9 15:11:07 2009
New Revision: 3753

URL: http://svn.slimdevices.com?rev=3753&root=Jive&view=rev
Log:
Bug: N/A
Description: avoid crashing if trying to load a non image file as an image

Modified:
    7.3/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c

Modified: 7.3/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c?rev=3753&root=Jive&r1=3752&r2=3753&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c (original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c Fri Jan  9 
15:11:07 2009
@@ -55,6 +55,9 @@
        tmp = IMG_Load(fullpath);
        if (!tmp) {
                fprintf(stderr, "Error in jive_file_load_image: %s\n", 
IMG_GetError());
+               free(fullpath);
+               free(tile);
+               return NULL;
        }
        else {
                if (tmp->format->Amask) {

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to