You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
fix a number of memory leaks
- some were with libav functions - same were due to non-virtual destructors
This commit is contained in:
@@ -42,6 +42,9 @@ CacheBase::CacheBase(int64_t max_bytes) : max_bytes(max_bytes) {
|
||||
cacheCriticalSection = new CriticalSection();
|
||||
};
|
||||
|
||||
CacheBase::~CacheBase() {
|
||||
};
|
||||
|
||||
// Set maximum bytes to a different amount based on a ReaderInfo struct
|
||||
void CacheBase::SetMaxBytesFromInfo(int64_t number_of_frames, int width, int height, int sample_rate, int channels)
|
||||
{
|
||||
@@ -69,4 +72,4 @@ void CacheBase::SetJsonValue(Json::Value root) {
|
||||
// Set data from Json (if key is found)
|
||||
if (!root["max_bytes"].isNull())
|
||||
max_bytes = atoll(root["max_bytes"].asString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user