summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2016-11-16 21:50:09 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-11-19 21:15:08 +0100
commit3036449fc6bc7754115f584689d28baee347be41 (patch)
tree0d2c0f2fc5142bb3f31f648d703fee6208c1b172
parent1cce397af6d1c9dd588d4a16e2b33933bb30d2ea (diff)
downloadglibmm-3036449fc6bc7754115f584689d28baee347be41.tar.gz
Gio::SettingsSchemaSource: do an extra reference() for returning value
* gio/src/settingsschemasource.hg: method get_default() returns transfer-none value, what means that we need to increase refcount before wrapping the pointer by RefPtr class. https://bugzilla.gnome.org/show_bug.cgi?id=774593
-rw-r--r--gio/src/settingsschemasource.hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/src/settingsschemasource.hg b/gio/src/settingsschemasource.hg
index 4097e935..f3309458 100644
--- a/gio/src/settingsschemasource.hg
+++ b/gio/src/settingsschemasource.hg
@@ -44,7 +44,7 @@ protected:
public:
- _WRAP_METHOD(static Glib::RefPtr<SettingsSchemaSource> get_default(), g_settings_schema_source_get_default)
+ _WRAP_METHOD(static Glib::RefPtr<SettingsSchemaSource> get_default(), g_settings_schema_source_get_default, refreturn)
/* TODO:
GLIB_AVAILABLE_IN_2_32