Changeset 101887 in webkit


Ignore:
Timestamp:
Dec 2, 2011 5:59:48 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Remove entry pointer before freeing it from matrix.
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):

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r101744 r101887  
     12011-12-02  JungJik Lee  <jungjik.lee@samsung.com>
     2
     3        [EFL] Remove entry pointer before freeing it from matrix.
     4        https://bugs.webkit.org/show_bug.cgi?id=73625
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        To prevent leaving dangling pointer on the matrix, remove the entry before freeing it.
     9
     10        * ewk/ewk_tiled_matrix.cpp:
     11        (ewk_tile_matrix_free):
     12
    1132011-12-01  Ryuan Choi  <ryuan.choi@samsung.com>
    214
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp

    r101462 r101887  
    303303    ewk_tile_matrix_invalidate(tileMatrix);
    304304    entry = EINA_INLIST_CONTAINER_GET(tileMatrix->matrices, Ewk_Tile_Matrix_Entry);
    305     eina_matrixsparse_free(entry->matrix);   
     305    tileMatrix->matrices = eina_inlist_remove(tileMatrix->matrices, (Eina_Inlist *)entry);
     306    eina_matrixsparse_free(entry->matrix);
    306307    free(entry);
    307308    tileMatrix->matrices = 0;
Note: See TracChangeset for help on using the changeset viewer.