Bug 91338 - [EFL][WK2] Define destructors for Ewk structures
Summary: [EFL][WK2] Define destructors for Ewk structures
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks: 61838
  Show dependency treegraph
 
Reported: 2012-07-15 00:51 PDT by Chris Dumez
Modified: 2012-07-15 23:25 PDT (History)
6 users (show)

See Also:


Attachments
Patch (9.11 KB, patch)
2012-07-15 01:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (9.31 KB, patch)
2012-07-15 05:06 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-07-15 00:51:53 PDT
Now that our Ewk structures have constructors, it makes sense to define destructors as well.
Comment 1 Chris Dumez 2012-07-15 01:24:18 PDT
Created attachment 152456 [details]
Patch
Comment 2 Kentaro Hara 2012-07-15 02:16:36 PDT
Comment on attachment 152456 [details]
Patch

Looks reasonable. Let me r+ it after informal reviews from EFL folks.
Comment 3 Gyuyoung Kim 2012-07-15 04:15:15 PDT
Comment on attachment 152456 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=152456&action=review

> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:62
> +    {

Don't you need to add ASSERT(!__ref); here as well ?
Comment 4 Chris Dumez 2012-07-15 04:36:43 PDT
Comment on attachment 152456 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=152456&action=review

>> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:62
>> +    {
> 
> Don't you need to add ASSERT(!__ref); here as well ?

No, _Ewk_Navigation_Policy_Decision is not ref counted. There is no __ref member in the struct.
Comment 5 Chris Dumez 2012-07-15 05:03:19 PDT
(In reply to comment #3)
> (From update of attachment 152456 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=152456&action=review
> 
> > Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:62
> > +    {
> 
> Don't you need to add ASSERT(!__ref); here as well ?

I'll make Ewk_Navigation_Policy_Decision ref counted in Bug 91343 though so I'll add the ASSERT there.
Comment 6 Chris Dumez 2012-07-15 05:06:00 PDT
Created attachment 152460 [details]
Patch

Move the default policy decision code to the Ewk_Navigation_Policy_Decision destructor as well.
Comment 7 Raphael Kubo da Costa (:rakuco) 2012-07-15 17:15:22 PDT
Comment on attachment 152460 [details]
Patch

Looks OK to me.
Comment 8 Gyuyoung Kim 2012-07-15 17:23:39 PDT
Comment on attachment 152460 [details]
Patch

LGTM too.
Comment 9 Kentaro Hara 2012-07-15 23:13:06 PDT
Comment on attachment 152460 [details]
Patch

Thanks for reviews. Looks OK to me.
Comment 10 WebKit Review Bot 2012-07-15 23:25:28 PDT
Comment on attachment 152460 [details]
Patch

Clearing flags on attachment: 152460

Committed r122697: <http://trac.webkit.org/changeset/122697>
Comment 11 WebKit Review Bot 2012-07-15 23:25:34 PDT
All reviewed patches have been landed.  Closing bug.