Commit 659b782a authored by David King's avatar David King Committed by Paolo Bacchilega

Fix fr_application_register_archive_manager_service memory leak

Found with Valgrind:

==17023== 48 bytes in 1 blocks are possibly lost in loss record 10,459
of 17,938
==17023==    at 0x4C2BC50: malloc (in
==17023==    by 0x748B689: g_malloc (gmem.c:97)
==17023==    by 0x74A4297: g_memdup (gstrfuncs.c:384)
==17023==    by 0x721820C: type_iface_vtable_base_init_Wm (gtype.c:2023)
==17023==    by 0x72198DE: type_class_init_Wm (gtype.c:2197)
==17023==    by 0x72198DE: g_type_class_ref (gtype.c:2951)
==17023==    by 0x7201033: g_object_new_valist (gobject.c:1959)
==17023==    by 0x7201193: g_object_new (gobject.c:1617)
==17023==    by 0x6ED6BD4: g_resource_open_stream (gresource.c:385)
==17023==    by 0x6ED6FA5: g_resources_open_stream (gresource.c:673)
==17023==    by 0x41D1B2:
fr_application_register_archive_manager_service (fr-application.c:418)
==17023==    by 0x41D1B2: fr_application_startup (fr-application.c:455)
==17023==    by 0x71FA0C3: _g_closure_invoke_va (gclosure.c:864)
==17023==    by 0x72142A0: g_signal_emit_valist (gsignal.c:3246)
==17023==    by 0x72148F1: g_signal_emit (gsignal.c:3393)
==17023==    by 0x6F0EA99: g_application_register (gapplication.c:2015)
==17023==    by 0x6F0F545: g_application_run (gapplication.c:2285)
==17023==    by 0x414F95: main (main.c:38)
parent 2e5de0b6
......@@ -438,6 +438,7 @@ fr_application_register_archive_manager_service (FrApplication *self)
g_timeout_add_seconds (SERVICE_TIMEOUT, service_timeout_cb, self);
_g_object_unref (stream);
g_free (buffer);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment