This commit is contained in:
itsmattkc
2019-02-02 12:47:12 +11:00
parent ce99c8fef0
commit e80fb93ad0
2 changed files with 3 additions and 6 deletions
+2 -4
View File
@@ -69,10 +69,8 @@ void close_clip(Clip* clip, bool wait) {
clip->finished_opening = false;
// destroy opengl texture in main thread
if (clip->texture != nullptr) {
delete clip->texture;
clip->texture = nullptr;
}
delete clip->texture;
clip->texture = nullptr;
for (int i=0;i<clip->effects.size();i++) {
if (clip->effects.at(i)->is_open()) clip->effects.at(i)->close();
+1 -2
View File
@@ -52,8 +52,7 @@ Media::~Media() {
case MEDIA_TYPE_FOOTAGE: delete to_footage(); break;
case MEDIA_TYPE_SEQUENCE: if (object != nullptr) delete to_sequence(); break;
}
if (throbber != nullptr) delete throbber;
// qDeleteAll(children);
delete throbber;
}
Footage *Media::to_footage() {