X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fremovefile.h;h=371c0710b1e6b28b00fb01841908fb07b3dd1031;hb=803cf48f8f7ee246eb5473e55fc2125e8b398250;hp=b2f35fa5042d25026b1b31da69f083118fbec468;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/removefile.h b/cinelerra-5.1/cinelerra/removefile.h index b2f35fa5..371c0710 100644 --- a/cinelerra-5.1/cinelerra/removefile.h +++ b/cinelerra-5.1/cinelerra/removefile.h @@ -40,12 +40,13 @@ public: void wait() { Thread::join(); delete this; } static void removeFile(const char *path) { RemoveFile *rf = new RemoveFile(path,1); - rf->run(); + rf->start(); } static void removeFileWait(const char *path) { if( ::access(path, F_OK) ) return; RemoveFile *rf = new RemoveFile(path,0); - rf->run(); rf->wait(); + rf->start(); rf->wait(); + delete rf; } };