[gnome-shell] window-tracker: Fix memory leak
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] window-tracker: Fix memory leak
- Date: Thu, 30 Jan 2014 23:00:46 +0000 (UTC)
commit ac22172a6ec37a158ca4cecf8c18f8fb29c1aa97
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 24 10:11:49 2014 -0500
window-tracker: Fix memory leak
shell_window_tracker_get_window_app() returns a new reference
which we need to drop once we're done.
https://bugzilla.gnome.org/show_bug.cgi?id=722927
src/shell-window-tracker.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c
index 9c1319c..dc9257e 100644
--- a/src/shell-window-tracker.c
+++ b/src/shell-window-tracker.c
@@ -484,6 +484,8 @@ update_focus_app (ShellWindowTracker *self)
}
set_focus_app (self, new_focus_app);
+
+ g_clear_object (&new_focus_app);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]