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:
Thomas Haller 2017-06-07 16:28:18 +02:00
parent 7b5251b35c
commit f07dca941d

View file

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