mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
keep QByteArray reference in QDebug destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7a7640db95
commit
c726e36c95
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ public:
|
|||
inline ~QDebug() {
|
||||
if (!--stream->ref) {
|
||||
if(stream->message_output) {
|
||||
qt_message_output(stream->type, stream->buffer.toLocal8Bit().data());
|
||||
QByteArray data = stream->buffer.toLocal8Bit();
|
||||
qt_message_output(stream->type, data.constData());
|
||||
}
|
||||
delete stream;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue