diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 22:18:03 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 22:18:25 (GMT) |
commit | acac24dbaae205b389c81132939280295b6a5d34 (patch) | |
tree | 3bc91706e0d455ebadb19e1d25efb1bc554a9788 /src/format | |
parent | f6e56cebfa878dd32a2405fd0c916a40140a1ff0 (diff) |
Cleaned code.
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/format.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/format/format.c b/src/format/format.c index 5ff08e6..2101767 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -251,9 +251,13 @@ void g_binary_format_set_content(GBinFormat *format, GBinContent *content) GBinContent *g_binary_format_get_content(const GBinFormat *format) { - g_object_ref(G_OBJECT(format->content)); + GBinContent *result; /* Instance à retourner */ - return format->content; + result = format->content; + + g_object_ref(G_OBJECT(result)); + + return result; } |