[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/html
From: Maks Orlovich <maksim () kde ! org>
Date: 2006-07-08 20:36:05
Message-ID: 1152390965.478536.30847.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 559991 by orlovich:
Yeah, yeah, it helps if I test -before- committing
M +6 -5 html_baseimpl.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/html_baseimpl.cpp #559990:559991
@@ -453,13 +453,14 @@
{
//### this is likely not quite right since we may be effectively "overriding" some old value,
//which needs to be recomputed, but this is better than crashing...
- if (m_onLoad && getDocument()->getHTMLEventListener(EventImpl::LOAD_EVENT) == m_onLoad)
- getDocument()->setHTMLEventListener(EventImpl::LOAD_EVENT, 0);
+ if (getDocument()) {
+ if (m_onLoad && getDocument()->getHTMLEventListener(EventImpl::LOAD_EVENT) == m_onLoad)
+ getDocument()->setHTMLEventListener(EventImpl::LOAD_EVENT, 0);
- if (m_onUnLoad && getDocument()->getHTMLEventListener(EventImpl::UNLOAD_EVENT) == m_onUnLoad)
- getDocument()->setHTMLEventListener(EventImpl::UNLOAD_EVENT, 0);
+ if (m_onUnLoad && getDocument()->getHTMLEventListener(EventImpl::UNLOAD_EVENT) == m_onUnLoad)
+ getDocument()->setHTMLEventListener(EventImpl::UNLOAD_EVENT, 0);
+ }
-
delete [] m_rows;
delete [] m_cols;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic