summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dwarf')
-rw-r--r--plugins/dwarf/format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/dwarf/format.c b/plugins/dwarf/format.c
index 96ce831..e071f1c 100644
--- a/plugins/dwarf/format.c
+++ b/plugins/dwarf/format.c
@@ -216,8 +216,7 @@ GDbgFormat *g_dwarf_format_new(GExeFormat *parent)
result = g_object_new(G_TYPE_DWARF_FORMAT, NULL);
- G_DBG_FORMAT(result)->executable = parent;
- g_object_ref(G_OBJECT(parent));
+ g_debuggable_format_attach_executable(G_DBG_FORMAT(result), parent);
content = G_BIN_FORMAT(parent)->content;