GNOME Bugzilla – Bug 708468
Crash when NM connection is removed after visiting the network panel
Last modified: 2013-10-01 08:02:12 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1010054 for a bug report including a crash backtrace.
Created attachment 255415 [details] [review] network: Correctly unref NetDevice instances when needed In both places we are not taking the GtkListStore own reference into account.
Created attachment 255416 [details] [review] network/net-device-ethernet: Disconnect from NMConnection signals Otherwise we'll crash in our handler if the signal fires after we're finalized i.e. user leaves the network panel.
Review of attachment 255415 [details] [review]: Looks right. But to me it looks like there is at least one more caller of get_selected_object() who does not take the returned ref into account: remove_connection
Review of attachment 255416 [details] [review]: good catch
Created attachment 255497 [details] [review] network: Correctly unref NetDevice instances when needed We have to take the GtkListStore own reference into account. -- (In reply to comment #3) > Looks right. But to me it looks like there is at least one more caller of > get_selected_object() who does not take the returned ref into account: > remove_connection Oops, fixed on this one.
Attachment 255416 [details] pushed as d8bfc9e - network/net-device-ethernet: Disconnect from NMConnection signals Attachment 255497 [details] pushed as fecc2ec - network: Correctly unref NetDevice instances when needed