Hi Andrew, Below dooes not give me any significant difference. I have opened 5 viewers, the memory rose from 4GB to 5.2GB, after closing the windows the memory reduced to 5.1GB. diff --git a/cinelerra-5.1/cinelerra/vwindow.C b/cinelerra-5.1/cinelerra/vwindow.C index 7be15eb8..d477dab1 100644 --- a/cinelerra-5.1/cinelerra/vwindow.C +++ b/cinelerra-5.1/cinelerra/vwindow.C @@ -160,6 +160,9 @@ void VWindow::handle_close_event(int result) { delete playback_engine; playback_engine = 0; + delete playback_cursor; + delete_source(1, 0); + delete clip_edit; } With the change I have also hit the issue below upon closing the main application with a viewer open; valgrind is pretty convincing this was caused by the change. My guess 'delete clip_edit' is at least one of the issues. double free or corruption (!prev) After reverting the change, I tried some more valgrinding. Cinelerra is rather slugish with valgrind on, but I have attached, what I see on viewing some smaller files. -- Stefan