This patch changes nm-device-802-11-wireless.c so that the class keeps track not of whether dispose has been called, but whether the object is in an initialized state. If the object's class-specific initializer has not been called, then we shouldn't do any class-specific cleanup, either.
The assumption that dispose always has a fully initialized object to work with exists throughout this code. It is definitely backwards logic that the original author should correct to avoid this kind of problem in the future.
This patch changes nm-device- 802-11- wireless. c so that the class keeps track not of whether dispose has been called, but whether the object is in an initialized state. If the object's class-specific initializer has not been called, then we shouldn't do any class-specific cleanup, either.
The assumption that dispose always has a fully initialized object to work with exists throughout this code. It is definitely backwards logic that the original author should correct to avoid this kind of problem in the future.