diff src/audacious/vfs_buffer.c @ 2562:07b990906823 trunk

[svn] - add reference-counting to VFS and add new function, vfs_dup() to mark a VFS handle as duplicated.
author nenolod
date Sat, 24 Feb 2007 06:01:39 -0800
parents 793ede082399
children ac22b2cb6013
line wrap: on
line diff
--- a/src/audacious/vfs_buffer.c	Fri Feb 23 20:10:54 2007 -0800
+++ b/src/audacious/vfs_buffer.c	Sat Feb 24 06:01:39 2007 -0800
@@ -220,6 +220,7 @@
 
     handle->handle = buffer;
     handle->base = &buffer_const;
+    handle->ref = 1;
 
     return handle;
 }