Fixed a potential memory leak.
This commit is contained in:
parent
93dfa5e074
commit
6cc4e4b309
@ -33,8 +33,11 @@ JobListModel::~JobListModel(void)
|
||||
{
|
||||
while(!m_jobs.isEmpty())
|
||||
{
|
||||
EncodeThread *thrd = m_threads.value(m_jobs.takeFirst(), NULL);
|
||||
X264_DELETE(thrd);
|
||||
QUuid id = m_jobs.takeFirst();
|
||||
EncodeThread *thread = m_threads.value(id, NULL);
|
||||
LogFileModel *logFile = m_logFile.value(id, NULL);
|
||||
X264_DELETE(thread);
|
||||
X264_DELETE(logFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
src/resource.h
Normal file
BIN
src/resource.h
Normal file
Binary file not shown.
BIN
x264_launcher.rc
Normal file
BIN
x264_launcher.rc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user