Fix some file cleanup issues

find /tmp/KShareTemp-*/ -type d | wc -l

53
This commit is contained in:
ArsenArsen 2017-06-13 11:17:12 +02:00
parent 26826b02c2
commit b5b2b1255f
2 changed files with 2 additions and 5 deletions

View File

@ -35,6 +35,8 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
return QByteArray();
}
QByteArray data = res.readAll();
tmpDir.removeRecursively();
QScopedPointer<RecordingFormats>(this);
return data;
};
validator = [&](QSize s) {
@ -51,10 +53,6 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
anotherFormat = formats::recordingFormatName(f);
}
RecordingFormats::~RecordingFormats() {
tmpDir.removeRecursively();
}
std::function<void(QImage)> RecordingFormats::getConsumer() {
return consumer;
}

View File

@ -13,7 +13,6 @@
class RecordingFormats {
public:
RecordingFormats(formats::Recording f);
~RecordingFormats();
std::function<void(QImage)> getConsumer();
std::function<bool(QSize)> getValidator();
std::function<QByteArray()> getFinalizer();