Cleaned up the code a little bit.<br>- fixed a small bug in Resource::~Resource(). (my fault)<br>- m_resources is now managed along with reference counting.<br>- Added a function ResourceData::shouldBeDeleted() to avoid duplication of code.<br>
<br>I think the shouldBeDeleted() function should be in another patch. <br><br>Btw, this code still hasn't been extensively tested. I'll do the testing later on. I just though I should share the patch so that I can get your comments. <br>
<br>- Vishesh Handa<br>