Bug 52434 - [GTK] Convert use of raw pointers to GOwnPtr in FileSystemGtk.cpp
Summary: [GTK] Convert use of raw pointers to GOwnPtr in FileSystemGtk.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 01:19 PST by Joone Hur
Modified: 2011-01-14 12:41 PST (History)
6 users (show)

See Also:


Attachments
Proposed Patch (2.84 KB, patch)
2011-01-14 01:34 PST, Joone Hur
levin: review+
Details | Formatted Diff | Diff
Proposed Patch2 (2.84 KB, patch)
2011-01-14 02:19 PST, Joone Hur
levin: review-
Details | Formatted Diff | Diff
Proposed Patch3 (2.83 KB, patch)
2011-01-14 03:42 PST, Joone Hur
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joone Hur 2011-01-14 01:19:54 PST
Some functions use GOwnPtr, but others still use gchar & char pointers.
Comment 1 Joone Hur 2011-01-14 01:34:33 PST
Created attachment 78907 [details]
Proposed Patch
Comment 2 Joone Hur 2011-01-14 02:19:16 PST
Created attachment 78915 [details]
Proposed Patch2

Sorry, I have submitted the patch again..
Comment 3 David Levin 2011-01-14 02:40:58 PST
Comment on attachment 78915 [details]
Proposed Patch2

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

Now that I had a second chance to look at it. I think it could be slightly better since you are making this change. Sorry for not noticing last time.

> Source/WebCore/platform/gtk/FileSystemGtk.cpp:51
>      return string;

I wonder why you don't just do
   return String(escapedString.get());

And the same for the other three places where you did a change.
Comment 4 Joone Hur 2011-01-14 03:42:24 PST
Created attachment 78923 [details]
Proposed Patch3

Thanks for the review.
Comment 5 Martin Robinson 2011-01-14 08:41:30 PST
Thanks for the cleanup, Joone!
Comment 6 Joone Hur 2011-01-14 08:51:54 PST
(In reply to comment #5)
> Thanks for the cleanup, Joone!

You're welcome :-)
Comment 7 WebKit Commit Bot 2011-01-14 09:02:23 PST
The commit-queue encountered the following flaky tests while processing attachment 78923 [details]:

The commit-queue is continuing to process your patch.
Comment 8 WebKit Commit Bot 2011-01-14 09:03:58 PST
Comment on attachment 78923 [details]
Proposed Patch3

Clearing flags on attachment: 78923

Committed r75797: <http://trac.webkit.org/changeset/75797>
Comment 9 WebKit Commit Bot 2011-01-14 09:04:06 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 David Levin 2011-01-14 09:15:55 PST
(In reply to comment #7)
> The commit-queue encountered the following flaky tests while processing attachment 78923 [details]:
> 
> The commit-queue is continuing to process your patch.

Eric, something went wrong here ^^^.
Comment 11 Eric Seidel (no email) 2011-01-14 11:58:38 PST
I think the python tests flaked and it got confused by that:
https://webkit-commit-queue.appspot.com/results/7492048

We need to disable that python test.  We've known it's been flaky for some time.
Comment 12 Dirk Pranke 2011-01-14 12:41:54 PST
(In reply to comment #11)
> I think the python tests flaked and it got confused by that:
> https://webkit-commit-queue.appspot.com/results/7492048
> 
> We need to disable that python test.  We've known it's been flaky for some time.

Perhaps a better solution would be to fix that test? :)