summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-12-02 20:38:02 +0100
committerMurray Cumming <murrayc@murrayc.com>2015-12-13 15:21:59 +0100
commit7045febdb573bca8f7871989ce6214363e75ff72 (patch)
treec52e86fbe4a693f30d904b733a01aa08b10bdc9e
parent33e22ea4942c9fde72ef2603b500e148251c97dc (diff)
downloadglibmm-7045febdb573bca8f7871989ce6214363e75ff72.tar.gz
Gio::ActionMap: Fix the ref count in lookup_action_vfunc()
* gio/src/actionmap.hg: Add refreturn in _WRAP_VFUNC(lookup_action). Bug #758813.
-rw-r--r--gio/src/actionmap.hg4
1 files changed, 1 insertions, 3 deletions
diff --git a/gio/src/actionmap.hg b/gio/src/actionmap.hg
index 3fb7332e..6f32fdb6 100644
--- a/gio/src/actionmap.hg
+++ b/gio/src/actionmap.hg
@@ -1,5 +1,3 @@
-// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
-
/* Copyright (C) 2012 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
@@ -185,7 +183,7 @@ public:
_WRAP_METHOD(void remove_action(const Glib::ustring& action_name), g_action_map_remove_action)
#m4 _CONVERSION(`Glib::RefPtr<Action>', `GAction*', `Glib::unwrap($3)')
- _WRAP_VFUNC(Glib::RefPtr<Action> lookup_action(const Glib::ustring& name) const, "lookup_action")
+ _WRAP_VFUNC(Glib::RefPtr<Action> lookup_action(const Glib::ustring& name) const, "lookup_action", refreturn)
//TODO: Change this to use const & when we can break ABI.
// ( Changing it causes a symbol lookup error when trying to run already-built applications. )