[glibmm/glibmm-2-46] Gio::ActionMap: Fix the ref count in lookup_action_vfunc()



commit 7045febdb573bca8f7871989ce6214363e75ff72
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Wed Dec 2 20:38:02 2015 +0100

    Gio::ActionMap: Fix the ref count in lookup_action_vfunc()
    
    * gio/src/actionmap.hg: Add refreturn in _WRAP_VFUNC(lookup_action).
    Bug #758813.

 gio/src/actionmap.hg |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/actionmap.hg b/gio/src/actionmap.hg
index 3fb7332..6f32fdb 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. )


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