Mercurial > geeqie.yaz
annotate src/thumb.h @ 1655:437c37d965ff
Fix two memory failures
1. if the description field for a exif information is empty the program
dumps core when trying to change this. The reason is a strcmp with a
NULL value.
The fix add the small functionality to set the field to default when
it is set empty.
2. There was a g_strdup miss in exif.c which could end in memory
corruption.
author | mow |
---|---|
date | Sun, 21 Jun 2009 22:52:08 +0000 |
parents | a6f9ba6fd751 |
children |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 | |
14 #ifndef THUMB_H | |
15 #define THUMB_H | |
16 | |
17 | |
18 ThumbLoader *thumb_loader_new(gint width, gint height); | |
19 void thumb_loader_set_callbacks(ThumbLoader *tl, | |
20 ThumbLoaderFunc func_done, | |
21 ThumbLoaderFunc func_error, | |
22 ThumbLoaderFunc func_progress, | |
23 gpointer data); | |
1446 | 24 void thumb_loader_set_cache(ThumbLoader *tl, gboolean enable_cache, gboolean local, gboolean retry_failed); |
9 | 25 |
1446 | 26 gboolean thumb_loader_start(ThumbLoader *tl, FileData *fd); |
9 | 27 void thumb_loader_free(ThumbLoader *tl); |
28 | |
864 | 29 GdkPixbuf *thumb_loader_get_pixbuf(ThumbLoader *tl); |
9 | 30 |
877 | 31 void thumb_notify_cb(FileData *fd, NotifyType type, gpointer data); |
9 | 32 |
33 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
877
diff
changeset
|
34 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |