[easytag] Fix memory leak in Log_Format_Date()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak in Log_Format_Date()
- Date: Tue, 21 Jan 2014 20:09:16 +0000 (UTC)
commit afad898b0394b6eafeaf6f89cf411ac5c0e96ab0
Author: David King <amigadave amigadave com>
Date: Tue Jan 21 19:42:09 2014 +0000
Fix memory leak in Log_Format_Date()
src/log.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/log.c b/src/log.c
index 577fb63..1ab65f0 100644
--- a/src/log.c
+++ b/src/log.c
@@ -231,6 +231,8 @@ Log_Format_Date (void)
/* Time without date in current locale. */
time = g_date_time_format (dt, "%X");
+ g_date_time_unref (dt);
+
return time;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]