VAPI: Fixed memory handling in case of Error

This commit is contained in:
Marcin Lewandowski 2016-02-28 12:54:38 +01:00
parent cca87ce46b
commit cbb146156e
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ namespace Jansson {
NULL
}
[CCode (cname = "json_error_t", has_type_id = false)]
public struct Error {
[Compact]
[CCode (cname = "json_error_t", free_function = "g_free", has_type_id = false)]
public class Error {
public string text;
public string source;
public int line;