mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-22 15:48:26 +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)
|
QZXingFilter::QZXingFilter(QObject *parent)
|
||||||
: QAbstractVideoFilter(parent)
|
: QAbstractVideoFilter(parent)
|
||||||
, decoding(false)
|
|
||||||
, decoder_p(new QZXing())
|
, decoder_p(new QZXing())
|
||||||
|
, decoding(false)
|
||||||
{
|
{
|
||||||
/// Conecting signals to handlers that will send signals to QML
|
/// Conecting signals to handlers that will send signals to QML
|
||||||
connect(decoder_p, &QZXing::decodingStarted,
|
connect(decoder_p, &QZXing::decodingStarted,
|
||||||
@ -39,7 +39,8 @@ QZXingFilter::QZXingFilter(QObject *parent)
|
|||||||
|
|
||||||
QZXingFilter::~QZXingFilter()
|
QZXingFilter::~QZXingFilter()
|
||||||
{
|
{
|
||||||
|
if(decoder_p)
|
||||||
|
delete decoder_p;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QZXingFilter::isDecoding()
|
bool QZXingFilter::isDecoding()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user