/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
gdt2 = zak_utils_get_gdatetime_from_string (zak_form_element_get_value (priv->v2), priv->format2);
if (gdt1 == NULL
+ && gdt2 == NULL)
+ {
+ return TRUE;
+ }
+ else if (gdt1 == NULL
|| gdt2 == NULL)
{
if (priv->type == LESSER
zak_form_validator_set_message (validator, msg);
g_free (msg);
}
+
+ if (gdt1 != NULL)
+ {
+ g_date_time_unref (gdt1);
+ }
+ if (gdt2 != NULL)
+ {
+ g_date_time_unref (gdt2);
+ }
}
return ret;