From 61b8dec235b4981e07683fe28aa5e44543e4e07f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 28 Jul 2010 10:32:53 -0700 Subject: Destroy timer of DHCP test program --- tools/dhcp-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3