Re: destroing data attached to a type (qdata)

2008-05-12 Thread Brian J. Tarricone
Stefan Kost wrote: > hi, > > I have an interface, where I share some data between the instances. > the data is created on first access. Now I also would like to release > it when the last instance goes. > > problem 1: base_finalize() is not called for static types > > I thought that I could

destroing data attached to a type (qdata)

2008-05-12 Thread Stefan Kost
hi, I have an interface, where I share some data between the instances. the data is created on first access. Now I also would like to release it when the last instance goes. problem 1: base_finalize() is not called for static types I thought that I could do some own ref-counting and then do