From: Enrico Zini Date: Sun, 28 Mar 2010 11:52:56 +0000 (+0100) Subject: Honour refcounting on release X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/c08de527ef9fe883ffa9b9633bac007eaa8ceb3d Honour refcounting on release --- diff --git a/src/core.vala b/src/core.vala index ade1231..2e21915 100644 --- a/src/core.vala +++ b/src/core.vala @@ -141,7 +141,9 @@ public abstract class Service : Object, Resource { if (el == null) return false; - requests.delete_link(el); + ++el.data.count; + if (el.data.count == 0) + requests.delete_link(el); if (requests != null) return false;