https://bugs.webkit.org/show_bug.cgi?id=73625
Patch by JungJik Lee <jungjik.lee@samsung.com> 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):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101887
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-12-02 JungJik Lee <jungjik.lee@samsung.com>
+
+ [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 <ryuan.choi@samsung.com>
[EFL] Cleanup includes to reduce code complexity.
2011-12-01 Ryuan Choi <ryuan.choi@samsung.com>
[EFL] Cleanup includes to reduce code complexity.
ewk_tile_unused_cache_freeze(tileMatrix->tilieUnusedCache);
ewk_tile_matrix_invalidate(tileMatrix);
entry = EINA_INLIST_CONTAINER_GET(tileMatrix->matrices, Ewk_Tile_Matrix_Entry);
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;
free(entry);
tileMatrix->matrices = 0;