[easytag] Fix memory leak in Parse_Date()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak in Parse_Date()
- Date: Wed, 5 Feb 2014 17:41:57 +0000 (UTC)
commit 1d0a255ca85d964141945a29f6e92d2ba0d89714
Author: David King <amigadave amigadave com>
Date: Mon Feb 3 22:30:28 2014 +0000
Fix memory leak in Parse_Date()
src/misc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index a9a922c..48a1199 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -441,6 +441,7 @@ gboolean Parse_Date (void)
{
dt = g_date_time_new_now_local ();
current_year = g_date_time_format (dt, "%Y");
+ g_date_time_unref (dt);
tmp = ¤t_year[4-strlen(year)];
if ( atoi(year) <= atoi(tmp) )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]