Skip to content
Commit bc909ba4 authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

kdirwatch: expand ref counting system to keep account of public instances

this supplements the previous system where we would set the `d` of Entry
instances to nullptr. This notably didn't cover KDirWatch instances that
do not have any entries though (such as when ::self() is getting called
but never installs any watches).
to solve this problem we now do object based refcounting where the
public refs and unrefs `this` and we keep a record of currently active
references inside the private
parent 40cd2c82
Pipeline #512832 passed with stage
in 3 minutes and 3 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment