aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag/ld-diagram-symbol.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-06 17:57:37 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-06 17:57:37 +0100
commit107ec13506484b10f63424c65f3bb67142265049 (patch)
tree9400d73cf336685b413f4d8273e552c5777f7dbb /liblogdiag/ld-diagram-symbol.c
parent7f08a51c6615242273f92cf69489d7cb540b7826 (diff)
downloadlogdiag-107ec13506484b10f63424c65f3bb67142265049.tar.gz
logdiag-107ec13506484b10f63424c65f3bb67142265049.tar.xz
logdiag-107ec13506484b10f63424c65f3bb67142265049.zip
Fix a memory leak in LdDiagramSymbol.
Diffstat (limited to 'liblogdiag/ld-diagram-symbol.c')
-rw-r--r--liblogdiag/ld-diagram-symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblogdiag/ld-diagram-symbol.c b/liblogdiag/ld-diagram-symbol.c
index 370d6ec..8307ef4 100644
--- a/liblogdiag/ld-diagram-symbol.c
+++ b/liblogdiag/ld-diagram-symbol.c
@@ -116,10 +116,10 @@ ld_diagram_symbol_new (JsonObject *storage)
*
* Return value: the class of the symbol.
*/
-const gchar *
+gchar *
ld_diagram_symbol_get_class (LdDiagramSymbol *self)
{
- const gchar *klass;
+ gchar *klass;
g_return_val_if_fail (LD_IS_DIAGRAM_SYMBOL (self), NULL);
g_object_get (self, "class", &klass, NULL);