mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gnetworkmonitornetlink: Fix a memory leak in unusual circumstances
If the GNetworkMonitorNetlink is finalised part-way through a dump (after request_dump() is called, but before finish_dump() is called), dump_networks was leaked. Fix that. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=793880
This commit is contained in:
parent
183c846b30
commit
61a899815b
@ -453,6 +453,7 @@ g_network_monitor_netlink_finalize (GObject *object)
|
||||
}
|
||||
|
||||
g_clear_pointer (&nl->priv->context, g_main_context_unref);
|
||||
g_clear_pointer (&nl->priv->dump_networks, g_ptr_array_unref);
|
||||
|
||||
G_OBJECT_CLASS (g_network_monitor_netlink_parent_class)->finalize (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user