clipedit remove vs delete
[goodguy/history.git] / cinelerra-5.0 / cinelerra / edl.C
index 8085c77eabebee3bbb79c9b66bc45e894cafd0ea..a22d3f139fc5aecf451a9cb2a90c3168ca7bf186 100644 (file)
@@ -882,8 +882,9 @@ void EDL::remove_from_project(ArrayList<EDL*> *clips)
                {
                        if(this->clips.get(j) == clips->values[i])
                        {
-                               this->clips.get(j)->Garbage::remove_user();
-                               this->clips.remove(this->clips.get(j));
+                               EDL *clip = this->clips.get(j);
+                               this->clips.remove(clip);
+                               clip->Garbage::remove_user();
                        }
                }
        }