[EFL] REGRESSION(176066): It made all performance tests fail
authorryuan.choi@navercorp.com <ryuan.choi@navercorp.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Nov 2014 20:48:49 +0000 (20:48 +0000)
committerryuan.choi@navercorp.com <ryuan.choi@navercorp.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Nov 2014 20:48:49 +0000 (20:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=138865

Reviewed by Csaba Osztrogon√°c.

Since r176066, there are crash because evas_gl_surface is destroyed with
invalid evas_gl instance after evas_gl is destroyed.

* UIProcess/API/efl/EwkView.cpp:
(EwkView::~EwkView):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/efl/EwkView.cpp

index 6f2832f..cbffa93 100644 (file)
@@ -1,3 +1,16 @@
+2014-11-24  Ryuan Choi  <ryuan.choi@navercorp.com>
+
+        [EFL] REGRESSION(176066): It made all performance tests fail
+        https://bugs.webkit.org/show_bug.cgi?id=138865
+
+        Reviewed by Csaba Osztrogon√°c.
+
+        Since r176066, there are crash because evas_gl_surface is destroyed with
+        invalid evas_gl instance after evas_gl is destroyed.
+
+        * UIProcess/API/efl/EwkView.cpp:
+        (EwkView::~EwkView):
+
 2014-11-24  Alberto Garcia  <berto@igalia.com>
 
         Webkit2 doesnt build on powerpc 32 bits
index 167d2b0..f66a9bf 100755 (executable)
@@ -353,6 +353,9 @@ EwkView::~EwkView()
     ASSERT(wkPageToEvasObjectMap().get(wkPage()) == m_evasObject);
     wkPageToEvasObjectMap().remove(wkPage());
 
+    m_evasGLSurface = nullptr;
+    m_evasGLContext = nullptr;
+
     if (m_evasGL)
         evas_gl_free(m_evasGL);
 }