Commit 1b7f706e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix crash on exit because or messed up memory management

parent c5b0f32c
......@@ -279,6 +279,7 @@ struct KisAnimationExportSaver::Private
KisAnimationExportSaver::KisAnimationExportSaver(KisDocument *document, const QString &baseFilename, int fromTime, int toTime, int sequenceNumberingOffset)
: m_d(new Private(document, fromTime, toTime, sequenceNumberingOffset))
{
qDebug() << "Rendering" << baseFilename << "from" << fromTime << "to" << toTime << "start" << sequenceNumberingOffset;
int baseLength = baseFilename.lastIndexOf(".");
if (baseLength > -1) {
m_d->filenamePrefix = baseFilename.left(baseLength);
......
......@@ -80,6 +80,7 @@ void AnimaterionRenderer::slotRenderAnimation()
if (dlgAnimaterionRenderer.exec() == QDialog::Accepted) {
KisPropertiesConfigurationSP sequencecfg = dlgAnimaterionRenderer.getSequenceConfiguration();
qDebug() << sequencecfg->toXML();
kisConfig.setExportConfiguration("IMAGESEQUENCE", *sequencecfg.data());
QString mimetype = sequencecfg->getString("mimetype");
QString extension = KisMimeDatabase::suffixesForMimeType(mimetype).first();
......
......@@ -122,6 +122,8 @@ DlgAnimaterionRenderer::DlgAnimaterionRenderer(KisImageWSP image, QWidget *paren
DlgAnimaterionRenderer::~DlgAnimaterionRenderer()
{
m_frameExportConfigurationWidget->setParent(0);
m_frameExportConfigurationWidget->deleteLater();
delete m_page;
}
......@@ -227,6 +229,7 @@ void DlgAnimaterionRenderer::sequenceMimeTypeSelected(int index)
if (m_frameExportConfigurationWidget) {
m_sequenceConfigLayout->removeWidget(m_frameExportConfigurationWidget);
m_frameExportConfigurationWidget->hide();
m_frameExportConfigurationWidget->setParent(0);
m_frameExportConfigurationWidget = 0;
}
QString mimetype = m_page->cmbMimetype->itemData(index).toString();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment