REGRESSION(r171526): [GTK] Massive crashes.
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jul 2014 04:27:57 +0000 (04:27 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jul 2014 04:27:57 +0000 (04:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=135283

Unreviewed. GTK build fix after r171526. Initialize m_buffer in SharedBuffer constructor.

* platform/soup/SharedBufferSoup.cpp:
(WebCore::SharedBuffer::SharedBuffer):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/soup/SharedBufferSoup.cpp

index 330a5bff93edb9a2bdaaadd23fc61cb3b351b6a6..2c8e536b72109d0391af943908c339dcf69fc41b 100644 (file)
@@ -1,3 +1,13 @@
+2014-07-24  Pratik Solanki  <psolanki@apple.com>
+
+        REGRESSION(r171526): [GTK] Massive crashes.
+        https://bugs.webkit.org/show_bug.cgi?id=135283
+
+        Unreviewed. GTK build fix after r171526. Initialize m_buffer in SharedBuffer constructor.
+
+        * platform/soup/SharedBufferSoup.cpp:
+        (WebCore::SharedBuffer::SharedBuffer):
+
 2014-07-24  Tim Horton  <timothy_horton@apple.com>
 
         Crashes under scanSelectionForTelephoneNumbers in Range::text() on some sites
index 89e1fe6a06b8320a7820daf4a834338fec99f2c9..9e08576f1b0eb66dbbc6bd16fe44df93444959f9 100644 (file)
@@ -29,6 +29,7 @@ namespace WebCore {
 
 SharedBuffer::SharedBuffer(SoupBuffer* soupBuffer)
     : m_size(0)
+    , m_buffer(adoptRef(new DataBuffer))
     , m_soupBuffer(soupBuffer)
 {
     ASSERT(soupBuffer);