[Thunar-dev] [thunar-vfs] Can ThunarVfsPath be safely unref-ed after creating ThunarVfsInfo object?

Brian J. Tarricone bjt23 at cornell.edu
Tue Dec 26 02:13:52 CET 2006


Stephan Arts wrote:
> Hi,
> 
> I am integrating file-properties support into squeeze, but i am not
> real sure what i should do here.
> 
> I understand a ThunarVfsPath object is required to create a
> ThunarVfsInfo object. (which i like to have), but is it safe to unref
> the ThunarVfsPath object afterwards?

Yup.  That's kinda the point of reference counting.  You can release 
your reference (assuming you own one) whenever *you* are done with it. 
If another piece of code (say, the ThunarVfsInfo creation code) needs a 
reference, it'll take one itself.

	-brian





More information about the Thunar-dev mailing list