Commit b88e8556 authored by David King's avatar David King Committed by Paolo Bacchilega

Fix fr_window_construct memory leak

Found with Valgrind:

==9376== 56 (40 direct, 16 indirect) bytes in 1 blocks are definitely
lost in loss record 10,629 of 17,916
==9376==    at 0x721CA3A: g_type_create_instance (gtype.c:1849)
==9376==    by 0x71FF0AA: g_object_new_internal (gobject.c:1774)
==9376==    by 0x72008C0: g_object_newv (gobject.c:1921)
==9376==    by 0x72011AB: g_object_new (gobject.c:1614)
==9376==    by 0x5301393: gtk_size_group_new (gtksizegroup.c:425)
==9376==    by 0x441548: fr_window_construct (fr-window.c:5740)
==9376==    by 0x441548: fr_window_new (fr-window.c:5796)
==9376==    by 0x41C490: fr_application_command_line
==9376==    by 0xC750D2F: ffi_call_unix64 (in
==9376==    by 0xC75079A: ffi_call (in /usr/lib64/
==9376==    by 0x71FAB94: g_cclosure_marshal_generic_va
==9376==    by 0x71FA0C3: _g_closure_invoke_va (gclosure.c:864)
==9376==    by 0x7213DD8: g_signal_emit_valist (gsignal.c:3246)
==9376==    by 0x72148F1: g_signal_emit (gsignal.c:3393)
==9376==    by 0x6F0CF82: g_application_call_command_line
==9376==    by 0x6F0F55F: g_application_run (gapplication.c:2292)
==9376==    by 0x414FE5: main (main.c:38)
parent d72e9eab
......@@ -5729,6 +5729,7 @@ fr_window_construct (FrWindow *window)
toolbar_size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
gtk_size_group_add_widget (toolbar_size_group, window->priv->location_bar);
gtk_size_group_add_widget (toolbar_size_group, window->priv->filter_bar);
g_object_unref (toolbar_size_group);
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