mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 08:50:34 +01:00
ppp: unexport NMPPPManager instance on dispose()
Let's explicitly unexports on dispose(). Probably that already happened, because NMExportedObject asserts that it is unexported during !quitting. During quitting, we probably don't tear down the manager. Anyway, we should always unexport.
This commit is contained in:
parent
7b5251b35c
commit
f07dca941d
1 changed files with 4 additions and 0 deletions
|
|
@ -1234,8 +1234,12 @@ static void
|
|||
dispose (GObject *object)
|
||||
{
|
||||
NMPPPManager *self = (NMPPPManager *) object;
|
||||
NMExportedObject *exported = NM_EXPORTED_OBJECT (self);
|
||||
NMPPPManagerPrivate *priv = NM_PPP_MANAGER_GET_PRIVATE (self);
|
||||
|
||||
if (nm_exported_object_is_exported (exported))
|
||||
nm_exported_object_unexport (exported);
|
||||
|
||||
_ppp_cleanup (self);
|
||||
_ppp_kill (self);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue