mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 17:00:33 +01:00
default-route-manager/trivial: add code comment
(cherry picked from commit 7de9bc618a)
This commit is contained in:
parent
b14b30c157
commit
530efb3882
1 changed files with 7 additions and 0 deletions
|
|
@ -1392,6 +1392,13 @@ dispose (GObject *object)
|
|||
|
||||
_resync_idle_cancel (self);
|
||||
|
||||
/* g_ptr_array_free() invokes the free function for all entries without actually
|
||||
* removing them and having dangling pointers in the process. _entry_free()
|
||||
* will unref the source, which might cause the destruction of the object, which
|
||||
* might trigger calling into @self again. This is guarded by priv->dispose.
|
||||
* If you remove priv->dispose, you must refactor the lines below to remove enties
|
||||
* one-by-one.
|
||||
*/
|
||||
if (priv->entries_ip4) {
|
||||
g_ptr_array_free (priv->entries_ip4, TRUE);
|
||||
priv->entries_ip4 = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue