[libchamplain/libchamplain-0-12] Don't use (transfer full) for initially unowned objects
- From: JiÅÃ Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-12] Don't use (transfer full) for initially unowned objects
- Date: Tue, 20 Dec 2011 01:14:58 +0000 (UTC)
commit 4b51f4e7699f784cc756239163b5378344a66a6d
Author: JiÅÃ Techet <techet gmail com>
Date: Sat Nov 26 00:44:29 2011 +0100
Don't use (transfer full) for initially unowned objects
Transfer full says that the caller should unref the object but
in the case of initially unowned objects this means one
extra unref and object destruction.
More details here:
https://bugzilla.gnome.org/show_bug.cgi?id=638542
champlain/champlain-map-source-factory.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c
index ef7c570..7a74390 100644
--- a/champlain/champlain-map-source-factory.c
+++ b/champlain/champlain-map-source-factory.c
@@ -323,7 +323,7 @@ champlain_map_source_factory_get_registered (ChamplainMapSourceFactory *factory)
* The id should not contain any character that can't be in a filename as it
* will be used as the cache directory name for that map source.
*
- * Returns: (transfer full): a ready to use #ChamplainMapSource matching the given name, returns
+ * Returns: (transfer none): a ready to use #ChamplainMapSource matching the given name, returns
* NULL is none match.
*
* Since: 0.4
@@ -360,7 +360,7 @@ champlain_map_source_factory_create (ChamplainMapSourceFactory *factory,
*
* Creates a cached map source.
*
- * Returns: (transfer full): a ready to use #ChamplainMapSourceChain consisting of
+ * Returns: (transfer none): a ready to use #ChamplainMapSourceChain consisting of
* #ChamplainMemoryCache, #ChamplainFileCache, #ChamplainMapSource matching the given name, and
* an error tile source created with champlain_map_source_factory_create_error_source ().
*
@@ -406,7 +406,7 @@ champlain_map_source_factory_create_cached_source (ChamplainMapSourceFactory *fa
*
* Creates a map source generating error tiles.
*
- * Returns: (transfer full): a ready to use map source generating error tiles.
+ * Returns: (transfer none): a ready to use map source generating error tiles.
*
* Since: 0.8
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]