[easytag] Fix a memory leak when loading images
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix a memory leak when loading images
- Date: Wed, 5 Mar 2014 23:49:01 +0000 (UTC)
commit 8a40b3c9f765dc2e9a9e9256c17a44ff38455e3a
Author: David King <amigadave amigadave com>
Date: Wed Mar 5 22:47:13 2014 +0000
Fix a memory leak when loading images
src/picture.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/picture.c b/src/picture.c
index 646ed0e..f93275b 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -301,10 +301,9 @@ et_picture_load_file (GFile *file, gpointer user_data)
g_assert_not_reached ();
}
- PictureEntry_Update(pic, TRUE);
+ PictureEntry_Update (pic, TRUE);
- // FIXME: Call Picture_Free(pic) here? It seems PictureEntry_Update makes copies of pic.
- //Picture_Free(pic);
+ Picture_Free (pic);
}
g_object_unref (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]