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:
Kovid Goyal 2022-05-03 10:22:55 +05:30
parent 1b1efb0890
commit 48647c76dd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -326,7 +326,7 @@ class Container(ContainerBase): # {{{
}
def clone_data(self, dest_dir):
Container.commit(self, keep_parsed=True)
Container.commit(self, keep_parsed=False)
self.cloned = True
clone_dir(self.root, dest_dir)
return self.data_for_clone(dest_dir)