Fix a memory leak in LdDiagramSymbol.

This commit is contained in:
2011-02-06 17:57:37 +01:00
parent 7f08a51c66
commit 107ec13506
3 changed files with 15 additions and 7 deletions

View File

@@ -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);