From 4f25a2d052f79fac4a43d65e1738670bcda0b8c2 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 21 Oct 2007 10:41:40 +0000 Subject: * src/itdb_photoalbum.c: (itdb_get_photos_dir): * src/ithumb-writer.c: (ipod_image_get_ithmb_filename): git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1728 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_photoalbum.c | 3 ++- src/ithumb-writer.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/itdb_photoalbum.c b/src/itdb_photoalbum.c index 714446e..af15407 100644 --- a/src/itdb_photoalbum.c +++ b/src/itdb_photoalbum.c @@ -24,7 +24,7 @@ | | This product is not supported/written/published by Apple! | -| $Id: itdb_photoalbum.c,v 1.17 2007/03/21 08:37:20 jcsjcs Exp $ +| $Id$ */ #include @@ -136,6 +136,7 @@ gchar *itdb_get_photos_dir (const gchar *mountpoint) for (ptr=paths; *ptr && !result; ++ptr) { + g_free (result); result = itdb_resolve_path (mountpoint, (const gchar **)*ptr); } return result; diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index e4d4a64..c6fa507 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -406,7 +406,7 @@ ipod_image_get_ithmb_filename (const char *mount_point, gint correlation_id, gin /* printf ("%s %s\n", buf, filename);*/ g_free (buf); - + g_free (artwork_dir); return filename; } -- cgit