X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgeometryval.cpp;fp=src%2Fgeometryval.cpp;h=5182c83d7efa449e284b2daae31737019ecdcd6b;hb=5bbf2530d027fd053cb42bb50fd56b63acb6bb99;hp=45f0f206735e040d91718c815ec27d7ad56ec051;hpb=af49335036440c6cb6fbb4723cce2efe49d54fe7;p=kdenlive diff --git a/src/geometryval.cpp b/src/geometryval.cpp index 45f0f206..5182c83d 100644 --- a/src/geometryval.cpp +++ b/src/geometryval.cpp @@ -384,10 +384,10 @@ void Geometryval::setupParam(const QDomElement par, int minFrame, int maxFrame) label_opacity->setHidden(true); spinTransp->setHidden(true); } - char *tmp = (char *) qstrdup(val.toUtf8().data()); - if (m_geom) m_geom->parse(tmp, maxFrame - minFrame, m_profile.width, m_profile.height); - else m_geom = new Mlt::Geometry(tmp, maxFrame - minFrame, m_profile.width, m_profile.height); - delete[] tmp; + if (m_geom) + m_geom->parse(val.toUtf8().data(), maxFrame - minFrame, m_profile.width, m_profile.height); + else + m_geom = new Mlt::Geometry(val.toUtf8().data(), maxFrame - minFrame, m_profile.width, m_profile.height); //kDebug() << " / / UPDATING TRANSITION VALUE: " << m_geom->serialise(); //read param her and set rect