Change to std::unique_ptr breaks wtf/DataLog.cpp when DATA_LOG_TO_FILE set to 1
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Oct 2013 18:22:08 +0000 (18:22 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Oct 2013 18:22:08 +0000 (18:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=122557

Reviewed by Filip Pizlo.

Changed the leakPtr() to release().

* wtf/DataLog.cpp:
(WTF::initializeLogFileOnce):

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

Source/WTF/ChangeLog
Source/WTF/wtf/DataLog.cpp

index 33e7151..85ad4f2 100644 (file)
@@ -1,3 +1,15 @@
+2013-10-09  Michael Saboff  <msaboff@apple.com>
+
+        Change to std::unique_ptr breaks wtf/DataLog.cpp when DATA_LOG_TO_FILE set to 1
+        https://bugs.webkit.org/show_bug.cgi?id=122557
+
+        Reviewed by Filip Pizlo.
+
+        Changed the leakPtr() to release().
+
+        * wtf/DataLog.cpp:
+        (WTF::initializeLogFileOnce):
+
 2013-10-08  Tim Horton  <timothy_horton@apple.com>
 
         Turn threaded scrolling on for all Mac ports.
index 8f21de1..9b3525c 100644 (file)
@@ -75,7 +75,7 @@ static void initializeLogFileOnce()
 #endif
 
     if (filename) {
-        file = FilePrintStream::open(actualFilename, "w").leakPtr();
+        file = FilePrintStream::open(actualFilename, "w").release();
         if (!file)
             fprintf(stderr, "Warning: Could not open log file %s for writing.\n", actualFilename);
     }