Bug 42569

Summary: [EFL] Fix some EFL theme issues
Product: WebKit Reporter: Rafael Antognolli <antognolli+webkit>
Component: WebKit EFLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: barbieri, commit-queue, lucas.de.marchi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Rafael Antognolli
Reported 2010-07-19 08:10:46 PDT
[EFL] Fix some EFL theme issues
Attachments
Patch (2.24 KB, patch)
2010-07-19 08:13 PDT, Rafael Antognolli
no flags
Rafael Antognolli
Comment 1 2010-07-19 08:13:56 PDT
Antonio Gomes
Comment 2 2010-07-19 08:24:49 PDT
Comment on attachment 61957 [details] Patch > + Keep a pointer to theme filename and check for it correctly. What was wrong previously? from what I understood, instead of having 'theme' and 'file' variables you changed to only have 'file', or you really fixing a problem?
Gustavo Sverzut Barbieri
Comment 3 2010-07-19 08:37:04 PDT
(In reply to comment #2) > (From update of attachment 61957 [details]) > > > + Keep a pointer to theme filename and check for it correctly. > > What was wrong previously? from what I understood, instead of having 'theme' and 'file' variables you changed to only have 'file', or you really fixing a problem? The good old annoyance of storing "const char*" that is return of a dynamically allocated String::utf8().data(). Now it is being stored in CString and used as CString::data(), for immediate use, retaining the memory.
Lucas De Marchi
Comment 4 2010-07-19 08:38:51 PDT
(In reply to comment #2) > (From update of attachment 61957 [details]) > > > + Keep a pointer to theme filename and check for it correctly. > > What was wrong previously? from what I understood, instead of having 'theme' and 'file' variables you changed to only have 'file', or you really fixing a problem? He was fixing a problem: > - file = edjeThemeRecursive().utf8().data(); The object returned by .utf8() will die as soon as .data() is returned. Thus 'file' will point for a memory area that is not allocated anymore.
WebKit Commit Bot
Comment 5 2010-07-19 09:06:25 PDT
Comment on attachment 61957 [details] Patch Clearing flags on attachment: 61957 Committed r63666: <http://trac.webkit.org/changeset/63666>
WebKit Commit Bot
Comment 6 2010-07-19 09:06:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.