Commit 6e3e490c authored by Guido Gunther's avatar Guido Gunther

home: Plug leak

g_enum_to_string() returns a newly allocated string
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 2ce9f7bc
......@@ -321,6 +321,7 @@ animate_cb(GtkWidget *widget,
void
phosh_home_set_state (PhoshHome *self, PhoshHomeState state)
{
g_autofree gchar *state_name = NULL;
gboolean enable_animations;
gboolean kbd_interactivity;
......@@ -332,7 +333,9 @@ phosh_home_set_state (PhoshHome *self, PhoshHomeState state)
enable_animations = hdy_get_enable_animations (GTK_WIDGET (self));
self->state = state;
g_debug ("Setting state to %s", g_enum_to_string (PHOSH_TYPE_HOME_STATE, state));
state_name = g_enum_to_string (PHOSH_TYPE_HOME_STATE, state);
g_debug ("Setting state to %s", state_name);
self->animation.last_frame = -1;
self->animation.progress = enable_animations ? (1.0 - self->animation.progress) : 1.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment