From 785ab8192b93c4873d694d866bbe7655067cb492 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 25 Aug 2012 22:14:34 -0300 Subject: [PATCH] shell-app: Fix a memory leak in the running state We need to free two strings that we allocated here. https://bugzilla.gnome.org/show_bug.cgi?id=682710 --- src/shell-app.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell-app.c b/src/shell-app.c index 5b2a21e8a..51a252498 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1281,6 +1281,8 @@ unref_running_state (ShellAppRunningState *state) g_clear_object (&state->remote_menu); g_clear_object (&state->muxer); + g_clear_pointer (&state->unique_bus_name, g_free); + g_clear_pointer (&state->remote_menu, g_free); g_slice_free (ShellAppRunningState, state); }