[easytag/wip/application-window] Fix memory leak in Parse_Date()



commit 38cff21a9f6045986730368a0dfd270cab13082b
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 807fffc..82f0f8b 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -301,6 +301,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 = &current_year[4-strlen(year)];
         if ( atoi(year) <= atoi(tmp) )


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