mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix memory leak caused by text_factory
This commit is contained in:
parent
9db9d144b9
commit
cf3cab2101
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ class DB:
|
|||
return [x[0] for x in self.execute(*a, **kw)]
|
||||
|
||||
def close(self):
|
||||
self._db.text_factory = None
|
||||
self._db.close()
|
||||
|
||||
def set_progress_handler(self, *args):
|
||||
|
|
Loading…
Reference in a new issue