Commit 98f3a18b authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Mohammed Sadiq
Browse files

history: Close database right

We were always passing NULL as db
parent 18c0f8f1
......@@ -284,7 +284,7 @@ history_close_db (ChattyHistory *self,
db = self->db;
self->db = NULL;
status = sqlite3_close (self->db);
status = sqlite3_close (db);
if (status == SQLITE_OK) {
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment