summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2013-06-14 01:26:16 -0700
committerMatt Watson <mattdangerw@gmail.com>2013-06-18 17:16:00 -0700
commitb1a5c99fa27d3f5855e9667002cbfc237e2aaa37 (patch)
tree9c975cdc6341c594c01afee28d01c66d419d3489
parent89413d5e9a7541ead9f76f859da9a53dbeb8d271 (diff)
Properly alloced memory for background size/position strings.
[endlessm/eos-sdk#102]
-rw-r--r--endless/eospagemanager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/endless/eospagemanager.c b/endless/eospagemanager.c
index e6bf8ce..25443d6 100644
--- a/endless/eospagemanager.c
+++ b/endless/eospagemanager.c
@@ -474,8 +474,8 @@ eos_page_manager_add (GtkContainer *container,
gtk_container_add (GTK_CONTAINER (self->priv->stack), new_page);
EosPageManagerPageInfo *info = g_slice_new0 (EosPageManagerPageInfo);
- info->background_size = DEFAULT_BACKGROUND_SIZE;
- info->background_position = DEFAULT_BACKGROUND_POSITION;
+ info->background_size = g_strdup (DEFAULT_BACKGROUND_SIZE);
+ info->background_position = g_strdup (DEFAULT_BACKGROUND_POSITION);
info->background_repeats = TRUE;
info->page = new_page;
self->priv->page_info = g_list_prepend (self->priv->page_info, info);