[Webkit-unassigned] [Bug 35087] New port: EFL; adding files to WebCore/*/efl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 26 22:41:03 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35087


Holger Freyther <zecke at selfish.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49614|review?                     |review-
               Flag|                            |




--- Comment #65 from Holger Freyther <zecke at selfish.org>  2010-02-26 22:41:02 PST ---
(From update of attachment 49614)

> +#include "config.h"
> +#include "KURL.h"
> +
> +#include "CString.h"
> +
> +#include <Ecore.h>
> +
> +namespace WebCore {
> +
> +String KURL::fileSystemPath() const
> +{
> +    char* filename = (char*)m_string.utf8().data();
> +    if (!filename)
> +        return String();
> +
> +    String path = String::fromUTF8(filename);
> +    free(filename);
> +    return path;


Sorry, I stopped here reading. The memory returned by .data() will be dead
shortly afterwards, calling free (filename) is certainly not right. The whole
method seems to be bogus though. :)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list