Backing out accidental commit.
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Oct 2006 01:52:20 +0000 (01:52 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Oct 2006 01:52:20 +0000 (01:52 +0000)
        * page/Frame.cpp:
        (WebCore::Frame::finishedParsing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16955 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/Frame.cpp

index 3a5600419d79ec1df674820c13df7cf7df34919a..b3da6c9733409bd89692b214053270de5e5c18d9 100644 (file)
@@ -1,3 +1,10 @@
+2006-10-09  Adam Roben  <aroben@apple.com>
+
+        Backing out accidental commit.
+
+        * page/Frame.cpp:
+        (WebCore::Frame::finishedParsing):
+
 2006-10-09  Adam Roben  <aroben@apple.com>
 
         Reviewed by Darin.
index 76381326ee4806577fcc38afb96dc45e6db2607a..eda76afaa4a843fa4002fe879ff5da2ec7be7d2c 100644 (file)
@@ -851,7 +851,7 @@ void Frame::finishedParsing()
 {
   // This method can be called from our destructor, in which case we shouldn't protect ourselves
   // because doing so will cause us to re-enter our destructor when protector goes out of scope.
-  RefPtr<Frame> protector = this;
+  RefPtr<Frame> protector = refCount() > 0 ? this : 0;
   checkCompleted();
 
   if (!d->m_view)