]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/chat/serv_chat.c
Fixed the clean up of Contexts when we exit.
[citadel.git] / citadel / modules / chat / serv_chat.c
index c77b36ab902f7cc700d7ded0eb3d5c8fc866c7ba..836e0affaae2f6dca2b5dec3463c5dc1a132b5f2 100644 (file)
@@ -424,9 +424,9 @@ void delete_instant_messages(void) {
                        free(CC->FirstExpressMessage->text);
                free(CC->FirstExpressMessage);
                CC->FirstExpressMessage = ptr;
-               }
-       end_critical_section(S_SESSION_TABLE);
        }
+       end_critical_section(S_SESSION_TABLE);
+}