[libsoup/gnome-3-4] Add missing transfer full annotation to soup_cookie_jar_add_cookie



commit 281ba3f248baba85e3511daea5130ad5e12a6956
Author: Daniel Drake <dsd laptop org>
Date:   Thu Aug 23 10:04:08 2012 -0600

    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

 libsoup/soup-cookie-jar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index 1f6500f..0e66963 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



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