summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elf/loading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elf/loading.c b/plugins/elf/loading.c
index 73e75f0..782b5c7 100644
--- a/plugins/elf/loading.c
+++ b/plugins/elf/loading.c
@@ -214,7 +214,7 @@ static void g_elf_loading_init(GElfLoading *loading)
static void g_elf_loading_dispose(GElfLoading *loading)
{
if (loading->kind == 2)
- g_object_unref(G_OBJECT(loading->content));
+ g_clear_object(&loading->content);
G_OBJECT_CLASS(g_elf_loading_parent_class)->dispose(G_OBJECT(loading));