⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 127219 in webkit


Ignore:
Timestamp:
Aug 30, 2012, 5:43:15 PM (14 years ago)
Author:
mhahnenberg@apple.com
Message:

~JSNPObject should call invalidate() if it hasn't been called already
​https://bugs.webkit.org/show_bug.cgi?id=95497

Reviewed by Geoffrey Garen.

Finalization is no longer eager, just like destruction, so the original intent behind
this ASSERT in ~JSNPObject is no longer relevant. Therefore, we can just call invalidate()
ourselves in ~JSNPObject.

  • WebProcess/Plugins/Netscape/JSNPObject.cpp:

(WebKit::JSNPObject::~JSNPObject):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r127215 r127219  
     12012-08-30  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        ~JSNPObject should call invalidate() if it hasn't been called already
     4        https://bugs.webkit.org/show_bug.cgi?id=95497
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Finalization is no longer eager, just like destruction, so the original intent behind
     9        this ASSERT in ~JSNPObject is no longer relevant. Therefore, we can just call invalidate()
     10        ourselves in ~JSNPObject.
     11
     12        * WebProcess/Plugins/Netscape/JSNPObject.cpp:
     13        (WebKit::JSNPObject::~JSNPObject):
     14
    1152012-08-30  Sam Weinig  <sam@webkit.org>
    216
  • trunk/Source/WebKit2/WebProcess/Plugins/Netscape/JSNPObject.cpp

    r127191 r127219  
    7878JSNPObject::~JSNPObject()
    7979{
    80     ASSERT(!m_npObject);
     80    if (m_npObject)
     81        invalidate();
    8182}
    8283
Note: See TracChangeset for help on using the changeset viewer.