Summary: | [EFL] Leak in ewk_frame_certificate_status_get() | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alberto Garcia <berto> | ||||||||
Component: | WebKit EFL | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cdumez, cgarcia, commit-queue, eflews.bot, gyuyoung.kim, lucas.de.marchi, rakuco | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Alberto Garcia
2013-11-15 02:17:52 PST
Created attachment 217030 [details]
Patch
Here's the patch, it should work fine but note that I don't have a working WebKitEFL environment here to test it.
Comment on attachment 217030 [details] Patch Attachment 217030 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/23968033 Created attachment 217033 [details]
Patch
Right, here's a new version.
Comment on attachment 217033 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=217033&action=review > Source/WebKit/efl/ewk/ewk_frame.cpp:1705 > - SoupMessage* soupMessage = documentLoader->request().toSoupMessage(); > + GRefPtr<SoupMessage> soupMessage(adoptGRef(documentLoader->request().toSoupMessage())); > > - if (soupMessage && (soup_message_get_flags(soupMessage) & SOUP_MESSAGE_CERTIFICATE_TRUSTED)) > + if (soupMessage && (soup_message_get_flags(soupMessage.get()) & SOUP_MESSAGE_CERTIFICATE_TRUSTED)) I think you could even avoid to create the soup message object by simply using if (documentLoader->request().soupMessageFlags() & SOUP_MESSAGE_CERTIFICATE_TRUSTED) Created attachment 217043 [details] Patch (In reply to comment #4) > I think you could even avoid to create the soup message object by simply using > > if (documentLoader->request().soupMessageFlags() & SOUP_MESSAGE_CERTIFICATE_TRUSTED) Good point, here's the new patch. Comment on attachment 217043 [details]
Patch
LGTM
Committed r159334: <http://trac.webkit.org/changeset/159334> |