| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2006-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | ||||
| @@ -118,8 +118,8 @@ caca_file_t *caca_file_open(char const *path, const char *mode) | |||||
| if(inflateInit2(&fp->stream, -MAX_WBITS)) | if(inflateInit2(&fp->stream, -MAX_WBITS)) | ||||
| { | { | ||||
| free(fp); | |||||
| gzclose(fp->gz); | gzclose(fp->gz); | ||||
| free(fp); | |||||
| seterrno(EINVAL); | seterrno(EINVAL); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * cacaplay caca file player | * cacaplay caca file player | ||||
| * Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2006-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This program is free software. It comes without any warranty, to | * This program is free software. It comes without any warranty, to | ||||
| @@ -78,6 +78,7 @@ int main(int argc, char **argv) | |||||
| if(n < 0) | if(n < 0) | ||||
| { | { | ||||
| fprintf(stderr, "%s: read error\n", argv[0]); | fprintf(stderr, "%s: read error\n", argv[0]); | ||||
| free(buf); | |||||
| return -1; | return -1; | ||||
| } | } | ||||
| else if(n == 0) | else if(n == 0) | ||||
| @@ -110,6 +111,7 @@ int main(int argc, char **argv) | |||||
| caca_get_event(dp, CACA_EVENT_KEY_PRESS, NULL, -1); | caca_get_event(dp, CACA_EVENT_KEY_PRESS, NULL, -1); | ||||
| /* Clean up */ | /* Clean up */ | ||||
| free(buf); | |||||
| close(fd); | close(fd); | ||||
| caca_free_display(dp); | caca_free_display(dp); | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * makefont create libcaca font data | * makefont create libcaca font data | ||||
| * Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2006-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This program is free software. It comes without any warranty, to | * This program is free software. It comes without any warranty, to | ||||
| @@ -337,6 +337,7 @@ int main(int argc, char *argv[]) | |||||
| free(glyph_data); | free(glyph_data); | ||||
| g_object_unref(l); | g_object_unref(l); | ||||
| g_object_unref(cx); | g_object_unref(cx); | ||||
| g_object_unref(fm); | |||||
| return 0; | return 0; | ||||
| } | } | ||||