mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When cloning containers dont keep the parsed representations
Saves RAM at the cost of having to re-parse if the container is re-used in the future. Fixes #1971150 [Epub Editor memory leak/improper memory handling with HTML renames](https://bugs.launchpad.net/calibre/+bug/1971150)
This commit is contained in:
parent
1b1efb0890
commit
48647c76dd
@ -326,7 +326,7 @@ class Container(ContainerBase): # {{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
def clone_data(self, dest_dir):
|
def clone_data(self, dest_dir):
|
||||||
Container.commit(self, keep_parsed=True)
|
Container.commit(self, keep_parsed=False)
|
||||||
self.cloned = True
|
self.cloned = True
|
||||||
clone_dir(self.root, dest_dir)
|
clone_dir(self.root, dest_dir)
|
||||||
return self.data_for_clone(dest_dir)
|
return self.data_for_clone(dest_dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user