mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-21 15:18:14 +00:00
deallocate instance of QZXing on QZXingFilter destruction. update the initialization list to match the declaration order
This commit is contained in:
parent
eb6bdb41e9
commit
5627d2fbb5
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user