[gnome-shell] ShellWindowTracker: fix reference leak
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ShellWindowTracker: fix reference leak
- Date: Wed, 7 Aug 2013 10:54:56 +0000 (UTC)
commit 3586e53fd9990416b186d206d7a9369f75539f8e
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Aug 7 12:54:14 2013 +0200
ShellWindowTracker: fix reference leak
get_app_from_window_wmclass() now returns a reference to the ShellApp,
no need for another one.
src/shell-window-tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c
index b526ff3..09653e4 100644
--- a/src/shell-window-tracker.c
+++ b/src/shell-window-tracker.c
@@ -374,7 +374,7 @@ get_app_for_window (ShellWindowTracker *tracker,
*/
result = get_app_from_window_wmclass (window);
if (result != NULL)
- return g_object_ref (result);
+ return result;
result = get_app_from_window_pid (tracker, window);
if (result != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]