nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

fix: Dispose `VectorDatabase` and `VectorList` instances #63

Closed hangy closed 6 days ago

hangy commented 6 days ago

## 📝 Description

Makes VectorDatabase implement IDisposable, and disposes VectorDatabase and VectorList where necessary.

🔗 Related Issues

Contributes to #62 by fixing the pressing issue, but a stable operation on Windows might require better memory management, ie. based on #2.

💡 Additional Notes

Maybe set up some static code analysis like SonarCloud and/or CodeQL to catch missing memory clean-up?