deallocate instance of QZXing on QZXingFilter destruction. update the initialization list to match the declaration order

This commit is contained in:
favoritas37 2017-01-17 16:35:26 +02:00
parent eb6bdb41e9
commit 5627d2fbb5

View File

@ -27,8 +27,8 @@ namespace {
QZXingFilter::QZXingFilter(QObject *parent)
: QAbstractVideoFilter(parent)
, decoding(false)
, decoder_p(new QZXing())
, decoding(false)
{
/// Conecting signals to handlers that will send signals to QML
connect(decoder_p, &QZXing::decodingStarted,
@ -39,7 +39,8 @@ QZXingFilter::QZXingFilter(QObject *parent)
QZXingFilter::~QZXingFilter()
{
if(decoder_p)
delete decoder_p;
}
bool QZXingFilter::isDecoding()