summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-08-23 10:04:08 -0600
committerDaniel Drake <dsd@laptop.org>2012-08-23 10:52:48 -0600
commit281ba3f248baba85e3511daea5130ad5e12a6956 (patch)
treee95eabdcb2306f814a986674a6c91d891f13e1d7
parentae6bc194cb4c0a1c3e2cee64b4df2a07aa666542 (diff)
downloadlibsoup-gnome-3-4.tar.gz
Add missing transfer full annotation to soup_cookie_jar_add_cookiegnome-3-4
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
-rw-r--r--libsoup/soup-cookie-jar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index 1f6500f2..0e669638 100644
--- a/libsoup/soup-cookie-jar.c
+++ b/libsoup/soup-cookie-jar.c
@@ -408,7 +408,7 @@ soup_cookie_jar_get_cookies (SoupCookieJar *jar, SoupURI *uri,
/**
* 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