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:
parent
db75734774
commit
3586e53fd9
@ -374,7 +374,7 @@ get_app_for_window (ShellWindowTracker *tracker,
|
|||||||
*/
|
*/
|
||||||
result = get_app_from_window_wmclass (window);
|
result = get_app_from_window_wmclass (window);
|
||||||
if (result != NULL)
|
if (result != NULL)
|
||||||
return g_object_ref (result);
|
return result;
|
||||||
|
|
||||||
result = get_app_from_window_pid (tracker, window);
|
result = get_app_from_window_pid (tracker, window);
|
||||||
if (result != NULL)
|
if (result != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user