[gthumb] fixed memory leak



commit a2e65782864288a25011f9c454e5b03f82904ae6
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jun 27 23:22:38 2010 +0200

    fixed memory leak

 gthumb/gth-main-default-types.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-main-default-types.c b/gthumb/gth-main-default-types.c
index 8024503..aca3879 100644
--- a/gthumb/gth-main-default-types.c
+++ b/gthumb/gth-main-default-types.c
@@ -46,6 +46,8 @@ gth_main_register_default_file_loader (void)
 		mime_types = gdk_pixbuf_format_get_mime_types (format);
 		for (i = 0; mime_types[i] != NULL; i++)
 			gth_main_register_pixbuf_loader (gth_pixbuf_animation_new_from_file, mime_types[i], NULL);
+
+		g_strfreev (mime_types);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]