Changeset - ad511482dde1
[Not reviewed]
default
0 1 0
Hasan Yavuz ÖZDERYA - 8 years ago 2017-08-20 13:16:58
hy@ozderya.net
fix potential memory leak, dynamically created object needs a parent
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/commandedit.cpp
Show inline comments
 
/*
 
  Copyright © 2015 Hasan Yavuz Özderya
 
  Copyright © 2017 Hasan Yavuz Özderya
 

	
 
  This file is part of serialplot.
 

	
 
@@ -62,7 +62,7 @@ CommandEdit::CommandEdit(QWidget *parent
 
    QLineEdit(parent)
 
{
 
    hexValidator = new HexCommandValidator(this);
 
    asciiValidator = new QRegExpValidator(QRegExp("[\\x0000-\\x007F]+"));
 
    asciiValidator = new QRegExpValidator(QRegExp("[\\x0000-\\x007F]+"), this);
 
    ascii_mode = true;
 
    setValidator(asciiValidator);
 
}
0 comments (0 inline, 0 general)