X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=thumbnailer%2Fwestleypreview.cpp;h=7a4642a1afc9f20057534bddcbf38770d228164b;hb=483f57143911f2c00a63e418e78ff8403340e33a;hp=4fab7b4ecd71534d17e4fb9fcdffe2644c67482c;hpb=054ff5c40ed015661e7cea3eaf683239e5b0839a;p=kdenlive diff --git a/thumbnailer/westleypreview.cpp b/thumbnailer/westleypreview.cpp index 4fab7b4e..7a4642a1 100644 --- a/thumbnailer/westleypreview.cpp +++ b/thumbnailer/westleypreview.cpp @@ -20,19 +20,17 @@ #include "westleypreview.h" -#include -#include -#include +#include +#include +#include #include #include -#include -#include +#include #include #include #include -#include -#include +#include #include @@ -41,14 +39,14 @@ //#include "config.h" extern "C" { - KDE_EXPORT ThumbCreator *new_creator() { - return new MltPreview; - } +KDE_EXPORT ThumbCreator *new_creator() { + return new MltPreview; +} } MltPreview::MltPreview() : - QObject(), - ThumbCreator() + QObject(), + ThumbCreator() { Mlt::Factory::init(); } @@ -67,6 +65,7 @@ bool MltPreview::create(const QString &path, int width, int height, QImage &img) if (producer->is_blank()) { delete producer; + delete profile; return false; } int frame = 75; @@ -157,3 +156,5 @@ ThumbCreator::Flags MltPreview::flags() const } + +#include "westleypreview.moc"