[Vala] about Soup.URI.encode



Hi all,

I've been playing with the libsoup-2.4 bindings when I came across
with a memleak:

the method encode in the URI object is defined as:

public static weak string encode (string part, string escape_extra);

But according with reference:

soup_uri_encode ()
This %-encodes the given URI part and returns the escaped version in
allocated memory, which the caller must free when it is done.

So, I think is wrong declare the return value as weak.

vmjl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]