Revision: 7880
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7880&view=rev
Author:   thjc
Date:     2009-06-23 13:07:54 +0000 (Tue, 23 Jun 2009)

Log Message:
-----------
Device doesnt need to delete a driver as this is handled by destroying the 
driver table.

Modified Paths:
--------------
    code/player/trunk/libplayercore/device.cc

Modified: code/player/trunk/libplayercore/device.cc
===================================================================
--- code/player/trunk/libplayercore/device.cc   2009-06-23 13:01:37 UTC (rev 
7879)
+++ code/player/trunk/libplayercore/device.cc   2009-06-23 13:07:54 UTC (rev 
7880)
@@ -74,7 +74,6 @@
 
   if(this->driver)
   {
-    this->driver->entries++;
     this->driver->device_addr = addr;
     this->InQueue = this->driver->InQueue;
   }
@@ -94,12 +93,6 @@
 
 Device::~Device()
 {
-  if(this->driver)
-  {
-    this->driver->entries--;
-    if(this->driver->entries == 0)
-      delete this->driver;
-  }
   free(this->queues);
   pthread_mutex_destroy(&accessMutex);
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to