diff options
Diffstat (limited to 'webkit/api/src/WebSecurityOrigin.cpp')
-rw-r--r-- | webkit/api/src/WebSecurityOrigin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/api/src/WebSecurityOrigin.cpp b/webkit/api/src/WebSecurityOrigin.cpp index f1641e3..c0563af 100644 --- a/webkit/api/src/WebSecurityOrigin.cpp +++ b/webkit/api/src/WebSecurityOrigin.cpp @@ -50,7 +50,8 @@ void WebSecurityOrigin::reset() void WebSecurityOrigin::assign(const WebSecurityOrigin& other) { WebSecurityOriginPrivate* p = const_cast<WebSecurityOriginPrivate*>(other.m_private); - p->ref(); + if (p) + p->ref(); assign(p); } |