libnm-glib: avoid use-after-free when replace_settings() fails
authorThomas Haller <thaller@redhat.com>
Sat, 26 Dec 2015 18:06:49 +0000 (19:06 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 26 Dec 2015 18:09:04 +0000 (19:09 +0100)
commit212e1c3a8481fef1ce780ed9b17d17fd51acdee3
tree603acb541294af1ecdbe2e41623ad6719fa841f2
parent142ea41cae133f6e645fced9ee899196b6c682f2
libnm-glib: avoid use-after-free when replace_settings() fails

When replace_settings() fails, it emits the REMOVED signal. That
in turn can free the self instance. Ensure to keep the instance alive
long enough.
libnm-glib/nm-remote-connection.c