fixed #395
This commit is contained in:
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user