gnome-python-desktop r548 - trunk/gnomedesktop
- From: gjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-python-desktop r548 - trunk/gnomedesktop
- Date: Sun, 8 Mar 2009 14:03:48 +0000 (UTC)
Author: gjc
Date: Sun Mar 8 14:03:48 2009
New Revision: 548
URL: http://svn.gnome.org/viewvc/gnome-python-desktop?rev=548&view=rev
Log:
Add caller-owns-return annotations for xxx_new_from_xxx functions. Fixes #570540.
Modified:
trunk/gnomedesktop/_gnomedesktop.defs
Modified: trunk/gnomedesktop/_gnomedesktop.defs
==============================================================================
--- trunk/gnomedesktop/_gnomedesktop.defs (original)
+++ trunk/gnomedesktop/_gnomedesktop.defs Sun Mar 8 14:03:48 2009
@@ -101,6 +101,7 @@
(define-function item_new_from_file
(c-name "gnome_desktop_item_new_from_file")
+ (caller-owns-return #t)
(return-type "GnomeDesktopItem*")
(parameters
'("const-char*" "file")
@@ -112,6 +113,7 @@
(define-function item_new_from_uri
(c-name "gnome_desktop_item_new_from_uri")
(return-type "GnomeDesktopItem*")
+ (caller-owns-return #t)
(parameters
'("const-char*" "uri")
'("int" "flags")
@@ -122,6 +124,7 @@
(define-function item_new_from_string
(c-name "gnome_desktop_item_new_from_string")
(return-type "GnomeDesktopItem*")
+ (caller-owns-return #t)
(parameters
'("const-char*" "uri")
'("const-char*" "string")
@@ -134,6 +137,7 @@
(define-function item_new_from_basename
(c-name "gnome_desktop_item_new_from_basename")
(return-type "GnomeDesktopItem*")
+ (caller-owns-return #t)
(parameters
'("const-char*" "basename")
'("int" "flags")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]