2008-11-25 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-date-button.c
index 10a9488..3c12833 100644 (file)
  *
  */
 
+#include "hildon-date-button.h"
+#include "hildon-date-selector.h"
+#include "hildon-touch-selector.h"
+
 /**
  * SECTION:hildon-date-button
  * @Short_Description: Button displaying and allowing selection of a date.
  * a different date from the selector, this will be shown in the button.
  */
 
-#include "hildon-date-selector.h"
-#include "hildon-touch-selector.h"
-#include "hildon-picker-button.h"
-#include "hildon-date-button.h"
-
 G_DEFINE_TYPE (HildonDateButton, hildon_date_button, HILDON_TYPE_PICKER_BUTTON)
 
 #if 0
@@ -159,4 +158,6 @@ hildon_date_button_set_date (HildonDateButton * button,
   date = hildon_touch_selector_get_current_text (HILDON_TOUCH_SELECTOR (selector));
 
   hildon_button_set_value (HILDON_BUTTON (button), date);
+
+  g_free (date);
 }