From: Roy Marples Date: Tue, 30 Sep 2014 07:54:28 +0000 (+0000) Subject: Fix a crash. X-Git-Tag: dhcpcd-ui-0.7.3~23 X-Git-Url: https://roy.marples.name/git Fix a crash. --- diff --git a/src/dhcpcd-qt/dhcpcd-qt.cpp b/src/dhcpcd-qt/dhcpcd-qt.cpp index 6cb9d9a..9e69bef 100644 --- a/src/dhcpcd-qt/dhcpcd-qt.cpp +++ b/src/dhcpcd-qt/dhcpcd-qt.cpp @@ -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);