[gnome-shell] shell-app: Fix a memory leak in the running state
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell-app: Fix a memory leak in the running state
- Date: Sun, 26 Aug 2012 14:56:15 +0000 (UTC)
commit 785ab8192b93c4873d694d866bbe7655067cb492
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Aug 25 22:14:34 2012 -0300
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 5b2a21e..51a2524 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]