Changeset 93410 in webkit


Ignore:
Timestamp:
Aug 19, 2011 8:25:03 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add "return" statement corresponding to abnormal condition on _ewk_frame_smart_add.
https://bugs.webkit.org/show_bug.cgi?id=65408

Bail out when we fail to allocate an Ewk_Frame_Smart_Data object rather than continuing on as if the allocation had succeeded.

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
Reviewed by Adam Roben.

  • ewk/ewk_frame.cpp:

(_ewk_frame_smart_add):

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

Legend:

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

    r93409 r93410  
     12011-08-19  KwangHyuk Kim  <hyuki.kim@samsung.com>
     2
     3        [EFL] Add "return" statement corresponding to abnormal condition on _ewk_frame_smart_add.
     4        https://bugs.webkit.org/show_bug.cgi?id=65408
     5
     6        Bail out when we fail to allocate an Ewk_Frame_Smart_Data object rather than continuing on as if the allocation had succeeded.
     7
     8        Reviewed by Adam Roben.
     9
     10        * ewk/ewk_frame.cpp:
     11        (_ewk_frame_smart_add):
     12
    1132011-08-19  KwangHyuk Kim  <hyuki.kim@samsung.com>
    214
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r92948 r93410  
    183183    if (!sd) {
    184184        sd = (Ewk_Frame_Smart_Data*)calloc(1, sizeof(Ewk_Frame_Smart_Data));
    185         if (!sd)
     185        if (!sd) {
    186186            CRITICAL("could not allocate Ewk_Frame_Smart_Data");
    187         else
    188             evas_object_smart_data_set(o, sd);
     187            return;
     188        }
     189        evas_object_smart_data_set(o, sd);
    189190    }
    190191
Note: See TracChangeset for help on using the changeset viewer.