From 26316b59aada56c91c164c379c08c129bc1ad265 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 11 Sep 2014 23:09:10 +0000 Subject: [PATCH] Fix a crash at exit. --- src/dhcpcd-qt/dhcpcd-qt.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcpcd-qt/dhcpcd-qt.cpp b/src/dhcpcd-qt/dhcpcd-qt.cpp index d40ce40..4d0ead8 100644 --- a/src/dhcpcd-qt/dhcpcd-qt.cpp +++ b/src/dhcpcd-qt/dhcpcd-qt.cpp @@ -79,12 +79,12 @@ DhcpcdQt::~DhcpcdQt() qDeleteAll(*wis); delete wis; - free(lastStatus); - if (con != NULL) { dhcpcd_close(con); dhcpcd_free(con); } + + free(lastStatus); } void DhcpcdQt::animate() -- 1.7.1