zypp/RepoInfo.cc
[platform/upstream/libzypp.git] / zypp / cache / sqlite3x / sqlite3x_connection.cpp
index e3ad870..f38415c 100644 (file)
@@ -70,6 +70,8 @@ sqlite3_connection::sqlite3_connection(const wchar_t *db) : db(NULL)
 \r
 sqlite3_connection::~sqlite3_connection()\r
 {\r
+  _ticks = zypp::ProgressData();\r
+  resetprogresshandler();\r
   if (this->db) sqlite3_close(this->db);\r
 }\r
 \r
@@ -85,6 +87,7 @@ void sqlite3_connection::setprogresshandler( const zypp::ProgressData::ReceiverF
 \r
 void sqlite3_connection::resetprogresshandler()\r
 {\r
+  _ticks = zypp::ProgressData();\r
   sqlite3_progress_handler(db, 0, NULL, (void*)this);\r
 }\r
 \r