Title: [101887] trunk/Source/WebKit/efl
Revision
101887
Author
[email protected]
Date
2011-12-02 17:59:48 -0800 (Fri, 02 Dec 2011)

Log Message

[EFL] Remove entry pointer before freeing it from matrix.
https://bugs.webkit.org/show_bug.cgi?id=73625

Patch by JungJik Lee <[email protected]> on 2011-12-02
Reviewed by Ryosuke Niwa.

To prevent leaving dangling pointer on the matrix, remove the entry before freeing it.

* ewk/ewk_tiled_matrix.cpp:
(ewk_tile_matrix_free):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (101886 => 101887)


--- trunk/Source/WebKit/efl/ChangeLog	2011-12-03 01:47:27 UTC (rev 101886)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-12-03 01:59:48 UTC (rev 101887)
@@ -1,3 +1,15 @@
+2011-12-02  JungJik Lee  <[email protected]>
+
+        [EFL] Remove entry pointer before freeing it from matrix.
+        https://bugs.webkit.org/show_bug.cgi?id=73625
+
+        Reviewed by Ryosuke Niwa.
+
+        To prevent leaving dangling pointer on the matrix, remove the entry before freeing it.
+
+        * ewk/ewk_tiled_matrix.cpp:
+        (ewk_tile_matrix_free):
+
 2011-12-01  Ryuan Choi  <[email protected]>
 
         [EFL] Cleanup includes to reduce code complexity.

Modified: trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp (101886 => 101887)


--- trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp	2011-12-03 01:47:27 UTC (rev 101886)
+++ trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp	2011-12-03 01:59:48 UTC (rev 101887)
@@ -302,7 +302,8 @@
     ewk_tile_unused_cache_freeze(tileMatrix->tilieUnusedCache);
     ewk_tile_matrix_invalidate(tileMatrix);
     entry = EINA_INLIST_CONTAINER_GET(tileMatrix->matrices, Ewk_Tile_Matrix_Entry);
-    eina_matrixsparse_free(entry->matrix);    
+    tileMatrix->matrices = eina_inlist_remove(tileMatrix->matrices, (Eina_Inlist *)entry);
+    eina_matrixsparse_free(entry->matrix);
     free(entry);
     tileMatrix->matrices = 0;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to