diff options
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; } |