Pages with Java don't like being left
Koos Vriezen
koos.vriezen at xs4all.nl
Tue Aug 13 20:15:36 BST 2002
On Tue, 13 Aug 2002, Koos Vriezen wrote:
> Hi,
>
> While looking at bug #46447, I noticed that khtml crashes when going to
> another page. It seems to happen to all pages that have Java applets when
> leaving it.
This causes it:
@@ -151,7 +151,10 @@ RenderWidget::~RenderWidget()
{
KHTMLAssert( refCount() <= 0 );
- delete m_widget;
+ if(m_widget) {
+ m_widget->hide();
+ m_widget->deleteLater();
+ }
}
And this fixes it:
diff -u -3 -p -r1.36 render_applet.cpp
--- render_applet.cpp 2002/07/16 12:47:33 1.36
+++ render_applet.cpp 2002/08/13 19:15:02
@@ -64,6 +64,8 @@ RenderApplet::RenderApplet(HTMLElementIm
RenderApplet::~RenderApplet()
{
+ delete m_widget;
+ m_widget = 0L;
}
short RenderApplet::intrinsicWidth() const
RenderApplet doesn't like being deleteLater.
Regards,
Koos
More information about the kfm-devel
mailing list