about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 5fc51038..99697411 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -231,6 +231,9 @@ otr_on_connect(ProfAccount *account)
         return;
     }
 
+    if (user_state) {
+        otrl_userstate_free(user_state);
+    }
     user_state = otrl_userstate_create();
 
     gcry_error_t err = 0;