mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 23:10:29 +01:00
device: fix leaking internal device factories
Actually, we anyway leak them, because they are added to static hash tables
which are never released. Anyway, get the ref-count right.
(cherry picked from commit 4c43d7cad3)
This commit is contained in:
parent
2b2e9bba74
commit
aa27007ff0
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ _load_internal_factory (GType factory_gtype,
|
|||
NMDeviceFactoryManagerFactoryFunc callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
NMDeviceFactory *factory;
|
||||
gs_unref_object NMDeviceFactory *factory = NULL;
|
||||
|
||||
factory = (NMDeviceFactory *) g_object_new (factory_gtype, NULL);
|
||||
_add_factory (factory, NULL, callback, user_data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue