diff options
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/format.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/format/format.c b/src/format/format.c index 261f152..cd71a21 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -156,10 +156,9 @@ static void g_binary_format_init(GBinFormat *format) static void g_binary_format_dispose(GBinFormat *format) { - if (format->demangler != NULL) - g_object_unref(format->demangler); + g_clear_object(&format->demangler); - g_object_unref(format->info); + g_clear_object(&format->info); g_rw_lock_clear(&format->syms_lock); |