mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-14 20:08:07 +02:00
session-monitor: fix a -Wcast-function-type warning
See-Also:ee916a1e9e(cherry picked from commitb686dd8488) (cherry picked from commitaeaa895049) (cherry picked from commit343cc27961)
This commit is contained in:
parent
e2796cda0d
commit
f16d3b93a0
1 changed files with 4 additions and 1 deletions
|
|
@ -125,7 +125,10 @@ st_sd_init (NMSessionMonitor *monitor)
|
|||
static void
|
||||
st_sd_finalize (NMSessionMonitor *monitor)
|
||||
{
|
||||
g_clear_pointer (&monitor->sd.monitor, sd_login_monitor_unref);
|
||||
if (monitor->sd.monitor) {
|
||||
sd_login_monitor_unref (monitor->sd.monitor);
|
||||
monitor->sd.monitor = NULL;
|
||||
}
|
||||
g_source_remove (monitor->sd.watch);
|
||||
}
|
||||
#endif /* SESSION_TRACKING_SYSTEMD */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue