ShellWindowTracker: fix reference leak

get_app_from_window_wmclass() now returns a reference to the ShellApp,
no need for another one.
This commit is contained in:
Giovanni Campagna 2013-08-07 12:54:14 +02:00
parent db75734774
commit 3586e53fd9

View File

@ -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)