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 NULL
} }
[CCode (cname = "json_error_t", has_type_id = false)] [Compact]
public struct Error { [CCode (cname = "json_error_t", free_function = "g_free", has_type_id = false)]
public class Error {
public string text; public string text;
public string source; public string source;
public int line; public int line;