Fix some file cleanup issues
find /tmp/KShareTemp-*/ -type d | wc -l 53
This commit is contained in:
parent
26826b02c2
commit
b5b2b1255f
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user