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
/**
* 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
* 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