summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-28 10:32:53 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-28 10:32:53 -0700
commit61b8dec235b4981e07683fe28aa5e44543e4e07f (patch)
treee8791a7e1127d2756968c55872beb867b8c3d464
parent7a9883b749cb810698d8572eb5bf90a8259471cf (diff)
downloadconnman-61b8dec235b4981e07683fe28aa5e44543e4e07f.tar.gz
connman-61b8dec235b4981e07683fe28aa5e44543e4e07f.tar.bz2
connman-61b8dec235b4981e07683fe28aa5e44543e4e07f.zip
Destroy timer of DHCP test program
-rw-r--r--tools/dhcp-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c
index 3b599afb..cf4ff71d 100644
--- a/tools/dhcp-test.c
+++ b/tools/dhcp-test.c
@@ -39,7 +39,7 @@
static GTimer *timer;
-static GMainLoop *main_loop = NULL;
+static GMainLoop *main_loop;
static void sig_term(int sig)
{
@@ -185,5 +185,7 @@ int main(int argc, char *argv[])
g_main_loop_unref(main_loop);
+ g_timer_destroy(timer);
+
return 0;
}