diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-02-05 22:03:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-02-05 22:03:38 (GMT) |
commit | 17f591f2230ac66394467d5e5eefe71cb259637d (patch) | |
tree | 1664e994b2904e5e9009027fc57749a11667365b /src/format/strsym.c | |
parent | ff187d24b7441e88e1f0361d59b0f6f55851791f (diff) |
Fixed a huge number of memory leaks.
Diffstat (limited to 'src/format/strsym.c')
-rw-r--r-- | src/format/strsym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format/strsym.c b/src/format/strsym.c index 6feb8a1..4e8479e 100644 --- a/src/format/strsym.c +++ b/src/format/strsym.c @@ -193,7 +193,7 @@ static void g_string_symbol_feeder_interface_init(GProxyFeederInterface *iface) static void g_string_symbol_dispose(GStrSymbol *symbol) { if (symbol->has_content) - g_object_unref(G_OBJECT(symbol->content)); + g_clear_object(&symbol->content); G_OBJECT_CLASS(g_string_symbol_parent_class)->dispose(G_OBJECT(symbol)); |