Use theme icons here rather than stock icons.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.cpp
index 0252c4d7d49033537416e3e25fc6c9b1e4f056a5..b6326e280350dd1c42ad5f1cd0da447968769cc0 100644 (file)
@@ -63,10 +63,12 @@ DhcpcdWi::~DhcpcdWi()
                menu = NULL;
        }
 
-       dhcpcd_wi_scans_free(scans);
-
-       if (notifier)
+       if (notifier) {
                delete notifier;
+               notifier = NULL;
+       }
+
+       dhcpcd_wi_scans_free(scans);
 }
 
 DHCPCD_WPA *DhcpcdWi::getWpa()