add binfolder path relative filters, fix gbrp color model, vwdw timebar tweaks, title...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / removefile.h
index b2f35fa5042d25026b1b31da69f083118fbec468..371c0710b1e6b28b00fb01841908fb07b3dd1031 100644 (file)
@@ -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;
        }
 };