Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xbdmenu.git;a=commitdiff;h=afc76621f066e6278551c4ec57ea19ac8d5f0c8a

commit afc76621f066e6278551c4ec57ea19ac8d5f0c8a
Author: James Buren <[email protected]>
Date:   Sun Mar 15 16:21:06 2009 -0500

mem.c
* rewrote to not automatically exit to avoid memory leaks

diff --git a/mem.c b/mem.c
index b0394fd..27de13c 100644
--- a/mem.c
+++ b/mem.c
@@ -81,13 +81,10 @@ extern gdImagePtr load_image(const char *fn)
else if(strstr(fn,".jpg")!=NULL||strstr(fn,".jpeg")!=NULL)
image = gdImageCreateFromJpeg(file);
if(image==NULL)
-       {
printf("Failed to load image file: '%s'\n",fn);
-               zfclose(file);
-               exit(EXIT_FAILURE);
-       }
+       else
+               ++rc;
zfclose(file);
-       ++rc;
return(image);
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to