summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-05 22:03:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-05 22:03:38 (GMT)
commit17f591f2230ac66394467d5e5eefe71cb259637d (patch)
tree1664e994b2904e5e9009027fc57749a11667365b /plugins/dwarf
parentff187d24b7441e88e1f0361d59b0f6f55851791f (diff)
Fixed a huge number of memory leaks.
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;