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();
|
return QByteArray();
|
||||||
}
|
}
|
||||||
QByteArray data = res.readAll();
|
QByteArray data = res.readAll();
|
||||||
|
tmpDir.removeRecursively();
|
||||||
|
QScopedPointer<RecordingFormats>(this);
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
validator = [&](QSize s) {
|
validator = [&](QSize s) {
|
||||||
@ -51,10 +53,6 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
|
|||||||
anotherFormat = formats::recordingFormatName(f);
|
anotherFormat = formats::recordingFormatName(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
RecordingFormats::~RecordingFormats() {
|
|
||||||
tmpDir.removeRecursively();
|
|
||||||
}
|
|
||||||
|
|
||||||
std::function<void(QImage)> RecordingFormats::getConsumer() {
|
std::function<void(QImage)> RecordingFormats::getConsumer() {
|
||||||
return consumer;
|
return consumer;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
class RecordingFormats {
|
class RecordingFormats {
|
||||||
public:
|
public:
|
||||||
RecordingFormats(formats::Recording f);
|
RecordingFormats(formats::Recording f);
|
||||||
~RecordingFormats();
|
|
||||||
std::function<void(QImage)> getConsumer();
|
std::function<void(QImage)> getConsumer();
|
||||||
std::function<bool(QSize)> getValidator();
|
std::function<bool(QSize)> getValidator();
|
||||||
std::function<QByteArray()> getFinalizer();
|
std::function<QByteArray()> getFinalizer();
|
||||||
|
Loading…
Reference in New Issue
Block a user