cli: clarify generic getter alloc/free behavior

This commit is contained in:
Dan Williams 2013-04-29 14:44:45 -05:00
parent 229cba8354
commit e09550ec62

View file

@ -780,6 +780,9 @@ vpn_data_item (const char *key, const char *value, gpointer user_data)
GValue val = G_VALUE_INIT; \
g_value_init (&val, G_TYPE_STRING); \
g_object_get_property (G_OBJECT (setting), property_name, &val); \
/* Getters return allocated values, and returning the string \
* the GValue copied from the object without unsetting the \
* GValue fulfills that requirement. */ \
return (char *) g_value_get_string (&val); \
}