Skip to content

Commit

Permalink
Don't call self.close() in __del__, fixes Zulko#1994 (Zulko#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasBora authored Jul 11, 2023
1 parent e163cf5 commit bc8d1a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moviepy/Clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ def __getitem__(self, key):
return self.get_frame(key)

def __del__(self):
self.close()
# WARNING: as stated in close() above, if we call close, it closes clips even
# if shallow copies are still in used, leading to some bugs: https://github.com/Zulko/moviepy/issues/1994
# so don't call self.close() here, rather do it manually in the code.
pass

def __add__(self, other):
# concatenate. implemented in specialized classes
Expand Down

0 comments on commit bc8d1a8

Please sign in to comment.