Widgets.Avatar: Free load image function on destroy

This commit is contained in:
Bleak Grey 2020-10-19 00:50:09 +03:00
parent 695e71ef4c
commit aaebd94085
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,6 @@ public class Tootle.Network : GLib.Object {
session.ssl_strict = true;
session.ssl_use_system_ca_file = true;
session.timeout = 15;
session.max_conns = 30;
session.request_unqueued.connect (msg => {
requests_processing--;
if (requests_processing <= 0)

View File

@ -20,6 +20,9 @@ public class Tootle.Widgets.Avatar : Bin {
construct {
avatar = new Hdy.Avatar (48, null, true);
avatar.destroy.connect (() => {
avatar.set_image_load_func (null);
});
add (avatar);
show_all ();