* Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).

* Switch to autoconf from genconfig.sh.
This commit is contained in:
Justin Maggard
2011-09-16 23:39:58 +00:00
parent 715af3519b
commit 773e1f6566
40 changed files with 1952 additions and 533 deletions

View File

@ -26,6 +26,7 @@
* The resize functions come from the resize_image project, at http://www.golac.fr/Image-Resizer
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -33,7 +34,11 @@
#include <sys/types.h>
#include <setjmp.h>
#include <jpeglib.h>
#ifdef HAVE_MACHINE_ENDIAN_H
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#include "upnpreplyparse.h"
#include "image_utils.h"
@ -380,8 +385,7 @@ image_get_jpeg_date_xmp(const char * path, char ** date)
}
}
fclose(img);
if( data )
free(data);
free(data);
return ret;
}
@ -463,8 +467,7 @@ image_new_from_jpeg(const char * path, int is_file, const char * buf, int size,
fclose(file);
if( vimage )
{
if( vimage->buf )
free(vimage->buf);
free(vimage->buf);
free(vimage);
}
return NULL;