Re: When to free GnomeVFSVolumeOpCallback?



On Wed, 2004-08-11 at 09:27, Alexander Larsson wrote:

> > So, is there another way to safely free the callbacks?
> 
> I'm not sure exactly what the problem is. Once you've called
> gnome_vfs_drive_mount you can't free the callback structure you passed
> in until you've gotten the callback. Even if the mount failed you will
> get the callback. There should be no way to "leak" the structure.

It didn't occur to me that the callback is always called exactly once. 
In that case, there indeed is no problem.

-- 
Thanks,
-Torsten




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]