Widgets.Avatar: Free load image function on destroy
This commit is contained in:
parent
695e71ef4c
commit
aaebd94085
|
@ -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)
|
||||
|
|
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue