app-system: Fix memory leak
The shell app takes a ref on the info.
This commit is contained in:
parent
78343f4837
commit
09fe31179a
@ -142,6 +142,7 @@ shell_app_system_lookup_app (ShellAppSystem *self,
|
|||||||
|
|
||||||
app = _shell_app_new (info);
|
app = _shell_app_new (info);
|
||||||
g_hash_table_insert (priv->id_to_app, (char *) shell_app_get_id (app), app);
|
g_hash_table_insert (priv->id_to_app, (char *) shell_app_get_id (app), app);
|
||||||
|
g_object_unref (info);
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user