Commit 5f769ca3 authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Fix leaking inline composer widgets

parent 61799fe0
Pipeline #57956 passed with stages
in 11 minutes and 37 seconds
......@@ -707,7 +707,9 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
ComposerRow row = new ComposerRow(embed);
row.enable_should_scroll();
row.should_scroll.connect(() => { scroll_to(row); });
// Use row param rather than row var from closure to avoid a
// circular ref.
row.should_scroll.connect((row) => { scroll_to(row); });
add(row);
embed.composer.draft_id_changed.connect((id) => { this.draft_id = id; });
......
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