Fixed a potential memory leak.

This commit is contained in:
LoRd_MuldeR 2012-01-29 01:28:41 +01:00
parent 93dfa5e074
commit 6cc4e4b309
3 changed files with 5 additions and 2 deletions

View File

@ -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

Binary file not shown.

BIN
x264_launcher.rc Normal file

Binary file not shown.