Fix a crash.
authorRoy Marples <roy@marples.name>
Tue, 30 Sep 2014 07:54:28 +0000 (07:54 +0000)
committerRoy Marples <roy@marples.name>
Tue, 30 Sep 2014 07:54:28 +0000 (07:54 +0000)
src/dhcpcd-qt/dhcpcd-qt.cpp

index 6cb9d9a9acad2a9a1acdd137edddaa34b30ec8f2..9e69befecac0636c4579503237b2e1fc5f08fa86 100644 (file)
@@ -77,6 +77,10 @@ DhcpcdQt::DhcpcdQt()
 DhcpcdQt::~DhcpcdQt()
 {
 
+       /* This will have already been destroyed,
+        * but the reference may not be. */
+       ssidMenu = NULL;
+
        if (con != NULL) {
                dhcpcd_close(con);
                dhcpcd_free(con);