2008-10-09 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Thu, 9 Oct 2008 10:25:09 +0000 (10:25 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Thu, 9 Oct 2008 10:25:09 +0000 (10:25 +0000)
* src/hildon-picker-button.c
(hildon_picker_button_set_done_button_text): Make a copy of the
text, and free the previous value.

ChangeLog
src/hildon-picker-button.c

index 7865e8a..c601679 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-09  Alberto Garcia  <agarcia@igalia.com>
+
+       * src/hildon-picker-button.c
+       (hildon_picker_button_set_done_button_text): Make a copy of the
+       text, and free the previous value.
+
 2008-10-09  Claudio Saavedra  <csaavedra@igalia.com>
 
        * src/hildon-touch-selector-entry.c:
index 229dd33..6b3e2b0 100644 (file)
@@ -387,5 +387,6 @@ hildon_picker_button_set_done_button_text (HildonPickerButton *button,
 
   priv = GET_PRIVATE (button);
 
-  priv->done_button_text = done_button_text;
+  g_free (priv->done_button_text);
+  priv->done_button_text = g_strdup (done_button_text);
 }