fix segmentation fault when quitting without logging in

This commit is contained in:
josch
2014-09-21 15:04:46 +02:00
parent 164de0782f
commit 675679acf7

View File

@@ -149,6 +149,7 @@ void mfshell_destroy(mfshell * shell)
free(shell->server);
free(shell->local_working_dir);
folder_free(shell->folder_curr);
mfconn_destroy(shell->conn);
if (shell->conn != NULL)
mfconn_destroy(shell->conn);
free(shell);
}