[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml
From: Maks Orlovich <maksim () kde ! org>
Date: 2010-06-04 19:54:44
Message-ID: 20100604195444.3D247AC8CA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1134650 by orlovich:
Don't let our nested KHTMLPart to be destroyed by widget destruction.
This may cause it to be destroyed before us, causing a Cache::clear
leak check while we're hanging on to a CachedImage. We will clean the
part properly ourselves in our destructor anyway.
Fixes some exit crashes w/ark.
M +5 -0 khtmlimage.cpp
--- trunk/KDE/kdelibs/khtml/khtmlimage.cpp #1134649:1134650
@@ -78,6 +78,11 @@
m_khtml = new KHTMLPart( box, this, prof );
m_khtml->setAutoloadImages( true );
+ // We do not want our subpart to be destroyed when its widget is,
+ // since that may cause all KHTMLParts to die when we're dealing
+ // with
+ m_khtml->setAutoDeletePart( false );
+
connect( m_khtml->view(), SIGNAL( finishedLayout() ), this, SLOT( restoreScrollPosition() ) );
setWidget( box );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic