Roy's Projects
/
dhcpcd-ui
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b43418d
)
Fix a crash.
author
Roy Marples
<roy@marples.name>
Tue, 30 Sep 2014 07:54:28 +0000
(07:54 +0000)
committer
Roy Marples
<roy@marples.name>
Tue, 30 Sep 2014 07:54:28 +0000
(07:54 +0000)
src/dhcpcd-qt/dhcpcd-qt.cpp
patch
|
blob
|
history
diff --git
a/src/dhcpcd-qt/dhcpcd-qt.cpp
b/src/dhcpcd-qt/dhcpcd-qt.cpp
index 6cb9d9a9acad2a9a1acdd137edddaa34b30ec8f2..9e69befecac0636c4579503237b2e1fc5f08fa86 100644
(file)
--- a/
src/dhcpcd-qt/dhcpcd-qt.cpp
+++ b/
src/dhcpcd-qt/dhcpcd-qt.cpp
@@
-77,6
+77,10
@@
DhcpcdQt::DhcpcdQt()
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);
if (con != NULL) {
dhcpcd_close(con);
dhcpcd_free(con);