Diff between b0e63efb1c4b85edced069628e8010c93611642c and 96789cce0b3f70e03d5dddb04fc585dfc2a04cf6
Changed Files
| File | Additions | Deletions | Status |
| client/main.c | +5 | -2 | modified |
Full Patch
diff --git a/client/main.c b/client/main.c
index ddfe511..e30946f 100644
--- a/client/main.c
+++ b/client/main.c
@@ -56,8 +56,6 @@ static void connect_handler(DBusConnection *connection, void *user_data)
printf("\r");
rl_on_new_line();
rl_redisplay();
-
- default_ctrl = NULL;
}
static void disconnect_handler(DBusConnection *connection, void *user_data)
@@ -69,6 +67,11 @@ static void disconnect_handler(DBusConnection *connection, void *user_data)
g_list_free(ctrl_list);
ctrl_list = NULL;
+
+ default_ctrl = NULL;
+
+ g_list_free(dev_list);
+ dev_list = NULL;
}
static void print_adapter(GDBusProxy *proxy, const char *description)