mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-27 21:23:15 +00:00
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_strict = true;
|
||||||
session.ssl_use_system_ca_file = true;
|
session.ssl_use_system_ca_file = true;
|
||||||
session.timeout = 15;
|
session.timeout = 15;
|
||||||
session.max_conns = 30;
|
|
||||||
session.request_unqueued.connect (msg => {
|
session.request_unqueued.connect (msg => {
|
||||||
requests_processing--;
|
requests_processing--;
|
||||||
if (requests_processing <= 0)
|
if (requests_processing <= 0)
|
||||||
|
|
|
@ -20,6 +20,9 @@ public class Tootle.Widgets.Avatar : Bin {
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
avatar = new Hdy.Avatar (48, null, true);
|
avatar = new Hdy.Avatar (48, null, true);
|
||||||
|
avatar.destroy.connect (() => {
|
||||||
|
avatar.set_image_load_func (null);
|
||||||
|
});
|
||||||
add (avatar);
|
add (avatar);
|
||||||
show_all ();
|
show_all ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue