Skip to content
Snippets Groups Projects
Commit 6fde4a7d authored by Armin Luntzer's avatar Armin Luntzer
Browse files

server net: do proper cleanup on drop_con_finalize()

parent c031914f
No related branches found
No related tags found
No related merge requests found
......@@ -260,16 +260,12 @@ static void drop_con_finalize(struct con_data *c)
goto unlock;
}
if (!c->con) {
g_warning("c->con is NULL");
goto unlock;
}
if (c->con) {
if (G_IS_OBJECT(c->con)) {
g_warning("c->con still holds references");
goto unlock;
}
}
if (!c->nick) {
g_warning("double-free attempt");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment