diff --git a/lib/base/p2p.vala b/lib/base/p2p.vala index fcf933714..a2ba647fc 100644 --- a/lib/base/p2p.vala +++ b/lib/base/p2p.vala @@ -447,7 +447,7 @@ namespace Frida { _pending_io = condition; foreach (var entry in sources.entries) { - Source source = entry.key; + unowned Source source = entry.key; IOCondition c = entry.value; if ((_pending_io & c) != 0) source.set_ready_time (0); @@ -825,7 +825,7 @@ namespace Frida { sctp_events = new_events; foreach (var entry in sources.entries) { - Source source = entry.key; + unowned Source source = entry.key; IOCondition c = entry.value; if ((new_events & c) != 0) source.set_ready_time (0); diff --git a/lib/base/socket.vala b/lib/base/socket.vala index 0730ce7c5..d2f4e8bd9 100644 --- a/lib/base/socket.vala +++ b/lib/base/socket.vala @@ -848,7 +848,7 @@ namespace Frida { _pending_io = new_io; foreach (var entry in sources.entries) { - Source source = entry.key; + unowned Source source = entry.key; IOCondition c = entry.value; if ((new_io & c) != 0) source.set_ready_time (0);