Commit 5cfab084 authored by Christian Hergert's avatar Christian Hergert
Browse files

actions: fix leak of type strings

parent 29a4dbbd
......@@ -148,7 +148,8 @@ create_variant_type (const GType *types,
break;
}
return FALSE;
g_string_free (str, TRUE);
return NULL;
}
}
......@@ -171,6 +172,8 @@ create_variant_type (const GType *types,
g_hash_table_insert (cached_types, type_str, type_str);
ret = (const GVariantType *)type_str;
}
else
g_string_free (str, TRUE);
return ret;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment