Revision: 7666
http://svn.sourceforge.net/supercollider/?rev=7666&view=revAuthor: cruxxial
Date: 2008-07-09 05:10:31 -0700 (Wed, 09 Jul 2008)
Log Message:
-----------
Buffer.uncache : if you quit the server and then free the Buffer it would fail during trying to uncache
Modified Paths:
--------------
trunk/build/SCClassLibrary/Common/Control/Buffer.sc
Modified: trunk/build/SCClassLibrary/Common/Control/Buffer.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Control/Buffer.sc 2008-07-08 23:59:25 UTC (rev 7665)
+++ trunk/build/SCClassLibrary/Common/Control/Buffer.sc 2008-07-09 12:10:31 UTC (rev 7666)
@@ -524,14 +524,16 @@
serverCaches[server][bufnum] = this;
}
uncache {
- serverCaches[server].removeAt(bufnum);
+ if(serverCaches[server].notNil,{
+ serverCaches[server].removeAt(bufnum);
+ });
+ if(serverCaches[server].size == 1) {
// the 1 item would be the responder
// if there is more than 1 item then the rest are cached buffers
// else we can remove.
// cx: tho i don't see why its important. it will just have to be added
// back when the next buffer is added and the responder is removed when
// the server reboots
- if(serverCaches[server].size == 1) {
Buffer.clearServerCaches(server);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev