Changeset 95656 in webkit


Ignore:
Timestamp:
Sep 21, 2011 11:59:29 AM (13 years ago)
Author:
demarchi@webkit.org
Message:

[EFL] Don't try to free user-provided list
https://bugs.webkit.org/show_bug.cgi?id=68356

Reviewed by Antonio Gomes.

A coding-style cleanup revealed that we were using EINA_LIST_FREE in a
wrong manner. If we intended to free the data, we should call free()
(or whatever function is required to destroy it). However not only did
it use the wrong EFL api but it also introduced a change in behavior,
freeing user-provided data.

  • ewk/ewk_frame.cpp:

(ewk_frame_feed_touch_event): do not free user-provided data.

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

Legend:

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

    r95627 r95656  
     12011-09-21  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
     2
     3        [EFL] Don't try to free user-provided list
     4        https://bugs.webkit.org/show_bug.cgi?id=68356
     5
     6        Reviewed by Antonio Gomes.
     7
     8        A coding-style cleanup revealed that we were using EINA_LIST_FREE in a
     9        wrong manner. If we intended to free the data, we should call free()
     10        (or whatever function is required to destroy it). However not only did
     11        it use the wrong EFL api but it also introduced a change in behavior,
     12        freeing user-provided data.
     13
     14        * ewk/ewk_frame.cpp:
     15        (ewk_frame_feed_touch_event): do not free user-provided data.
     16
    1172011-09-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    218
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r95556 r95656  
    932932    EWK_FRAME_SD_GET(o, sd);
    933933
    934     if (!sd || !sd->frame || !ewk_view_need_touch_events_get(sd->view)) {
    935         void *point;
    936         EINA_LIST_FREE(points, point);
     934    if (!sd || !sd->frame || !ewk_view_need_touch_events_get(sd->view))
    937935        return EINA_FALSE;
    938     }
    939936
    940937    Evas_Coord x, y;
Note: See TracChangeset for help on using the changeset viewer.