diff options
author | Daniel Drake <dsd@laptop.org> | 2012-08-23 10:04:08 -0600 |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2012-08-23 10:52:38 -0600 |
commit | dc4cf04a2b3e06570f87b566d310b98e4bf0c01b (patch) | |
tree | ad6476aa451436d6f5336be56c2761e2661a195b /libsoup/soup-cookie-jar.c | |
parent | 81bc02e6aae53c38d37dbf530b67ef7a752e19e5 (diff) | |
download | libsoup-dc4cf04a2b3e06570f87b566d310b98e4bf0c01b.tar.gz |
Add missing transfer full annotation to soup_cookie_jar_add_cookie
Adding a cookie to a jar from Python (via introspection) wasn't working
right, since the cookie was being freed as soon as the python object
went out of scope, but soup_cookie_jar_add_cookie() explicitly states
that freeing shouldn't happen.
Add a missing annotation to fix this. Thanks to Benjamin Berg for the
suggestion.
Fixes http://bugs.sugarlabs.org/ticket/3825
https://bugzilla.gnome.org/show_bug.cgi?id=682554
Diffstat (limited to 'libsoup/soup-cookie-jar.c')
-rw-r--r-- | libsoup/soup-cookie-jar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c index 433e7046..3180680d 100644 --- a/libsoup/soup-cookie-jar.c +++ b/libsoup/soup-cookie-jar.c @@ -432,7 +432,7 @@ soup_cookie_jar_get_cookie_list (SoupCookieJar *jar, SoupURI *uri, gboolean for_ /** * soup_cookie_jar_add_cookie: * @jar: a #SoupCookieJar - * @cookie: a #SoupCookie + * @cookie: (transfer full): a #SoupCookie * * Adds @cookie to @jar, emitting the 'changed' signal if we are modifying * an existing cookie or adding a valid new cookie ('valid' means @@ -510,7 +510,7 @@ soup_cookie_jar_add_cookie (SoupCookieJar *jar, SoupCookie *cookie) * soup_cookie_jar_add_cookie_with_first_party: * @jar: a #SoupCookieJar * @first_party: the URI for the main document - * @cookie: a #SoupCookie + * @cookie: (transfer full): a #SoupCookie * * Adds @cookie to @jar, emitting the 'changed' signal if we are modifying * an existing cookie or adding a valid new cookie ('valid' means |