Add a note in the documentation for purple_plugins_find_all() that the list is owned by caller soc.2013.gobjectification.plugins

Wed, 07 Aug 2013 04:54:32 +0530

author
Ankit Vani <a@nevitus.org>
date
Wed, 07 Aug 2013 04:54:32 +0530
branch
soc.2013.gobjectification.plugins
changeset 36461
e769bd450874
parent 36460
8c939ea45957
child 36462
869de290ccfb

Add a note in the documentation for purple_plugins_find_all() that the list is owned by caller

libpurple/plugins.h file | annotate | diff | comparison | revisions
--- a/libpurple/plugins.h	Wed Aug 07 04:35:15 2013 +0530
+++ b/libpurple/plugins.h	Wed Aug 07 04:54:32 2013 +0530
@@ -523,7 +523,8 @@
 /**
  * Returns a list of all plugins, whether loaded or not.
  *
- * @return A list of all plugins.
+ * @return A list of all plugins. The list is owned by the caller, and must be
+ *         g_list_free()d to avoid leaking the nodes.
  */
 GList *purple_plugins_find_all(void);
 

mercurial