[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.4/kdelibs/kdeui
From: Michael Buesch <mbuesch () freenet ! de>
Date: 2005-06-06 8:24:21
Message-ID: 1118046261.271752.11906.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 422709 by mbuesch:
fix memory leak
==7775== 4 bytes in 1 blocks are definitely lost in loss record 36 of 633
==7775== at 0x1B9076F1: operator new(unsigned) (vg_replace_malloc.c:132)
==7775== by 0x1BCDE1A3: ourMaxLength(KPasswordEdit const*) (kpassdlg.cpp:71)
M +1 -0 kpassdlg.cpp
--- branches/KDE/3.4/kdelibs/kdeui/kpassdlg.cpp #422708:422709
@@ -64,6 +64,7 @@
static int * ourMaxLength( const KPasswordEdit* const e ) {
if ( !d_ptr ) {
d_ptr = new QPtrDict<int>;
+ d_ptr->setAutoDelete(true);
qAddPostRoutine( cleanup_d_ptr );
}
int* ret = d_ptr->find( (void*) e );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic