[geany/geany] 3291c3: Fix utils_parse_and_format_build_date()

Colomban Wendling git-noreply at xxxxx
Sun Mar 17 18:36:17 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 17 Mar 2013 18:36:17 UTC
Commit:      3291c30de570cc49a60fb270c952199a8acbc63d
             https://github.com/geany/geany/commit/3291c30de570cc49a60fb270c952199a8acbc63d

Log Message:
-----------
Fix utils_parse_and_format_build_date()


Modified Paths:
--------------
    src/utils.c

Modified: src/utils.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -2126,8 +2126,11 @@ gchar *utils_parse_and_format_build_date(const gchar *input)
 	GDate *date = utils_parse_date(input);
 
 	if (date != NULL)
+	{
 		g_date_strftime(date_buf, sizeof(date_buf), GEANY_TEMPLATES_FORMAT_DATE, date);
+		g_date_free(date);
 		return g_strdup(date_buf);
+	}
 
 	return g_strdup(input);
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list