summaryrefslogtreecommitdiff
path: root/vala/valatypesymbol.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-03-21 19:03:52 +0100
committerJürg Billeter <j@bitron.ch>2010-03-21 19:03:52 +0100
commit8974eb665656a24a8efee29f963a84c82ecbac44 (patch)
tree660397daef3b445f4f3d80527919aeffa07503a2 /vala/valatypesymbol.vala
parentc1ee79af32db6572ab1cd3d910d30c10cfbd95cb (diff)
downloadvala-8974eb665656a24a8efee29f963a84c82ecbac44.tar.gz
Fix memory leak with owned property getters and g_object_get
Fixes bug 576152.
Diffstat (limited to 'vala/valatypesymbol.vala')
-rw-r--r--vala/valatypesymbol.vala12
1 files changed, 10 insertions, 2 deletions
diff --git a/vala/valatypesymbol.vala b/vala/valatypesymbol.vala
index 7be7b97ff..996e5dcc8 100644
--- a/vala/valatypesymbol.vala
+++ b/vala/valatypesymbol.vala
@@ -1,6 +1,7 @@
/* valatypesymbol.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter, Raffaele Sandrini
+ * Copyright (C) 2006-2010 Jürg Billeter
+ * Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -195,7 +196,14 @@ public abstract class Vala.TypeSymbol : Symbol {
public virtual string? get_set_value_function () {
return null;
}
-
+
+ /**
+ * Returns the cname of the GValue taker function.
+ */
+ public virtual string? get_take_value_function () {
+ return null;
+ }
+
/**
* Returns the C name of this data type in upper case. Words are
* separated by underscores. The upper case C name of the namespace is