mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 14:48:10 +02:00
session-monitor: fix a -Wcast-function-type warning
See-Also:ee916a1e9e(cherry picked from commitb686dd8488) (cherry picked from commitaeaa895049)
This commit is contained in:
parent
3cd8c64c6d
commit
343cc27961
1 changed files with 4 additions and 1 deletions
|
|
@ -137,7 +137,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