gnucash master: Fix GLib assert on windows when entering a date in dst

Geert Janssens gjanssens at code.gnucash.org
Fri Feb 21 11:33:43 EST 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/7f22ea3c (commit)
	from  https://github.com/Gnucash/gnucash/commit/a224f2bf (commit)



commit 7f22ea3c87f4a99f090e20bdd9ae3bc080b75e27
Author: Geert Janssens <janssens-geert at telenet.be>
Date:   Fri Feb 21 15:52:31 2014 +0100

    Fix GLib assert on windows when entering a date in dst

diff --git a/src/libqof/qof/gnc-date.c b/src/libqof/qof/gnc-date.c
index dae44d1..58b1059 100644
--- a/src/libqof/qof/gnc-date.c
+++ b/src/libqof/qof/gnc-date.c
@@ -170,7 +170,6 @@ gnc_g_time_zone_adjust_for_dst (GTimeZone* tz, GDateTime *date)
     g_return_val_if_fail (date != NULL, NULL);
     if (dst > 0 && win32_in_dst (date, &tzinfo))
     {
-        g_time_zone_unref (tz);
 	bias = tzinfo.Bias + tzinfo.DaylightBias;
 	hours = -bias / 60; // 60 minutes per hour
 	minutes = (bias < 0 ? -bias : bias) % 60;



Summary of changes:
 src/libqof/qof/gnc-date.c | 1 -
 1 file changed, 1 deletion(-)



More information about the gnucash-changes mailing list