diff --git a/core/.jvm/src/main/scala/org/polyvariant/treesitter4s/lowlevel/TreeSitterPlatform.scala b/core/.jvm/src/main/scala/org/polyvariant/treesitter4s/lowlevel/TreeSitterPlatform.scala index 3d98779..552a11b 100644 --- a/core/.jvm/src/main/scala/org/polyvariant/treesitter4s/lowlevel/TreeSitterPlatform.scala +++ b/core/.jvm/src/main/scala/org/polyvariant/treesitter4s/lowlevel/TreeSitterPlatform.scala @@ -63,8 +63,6 @@ object TreeSitterPlatform { .invoke(classOf[org.polyvariant.treesitter4s.Language], Array()) .asInstanceOf[org.polyvariant.treesitter4s.Language] - // We need to keep all references to the libraries in a map - // otherwise they get GC'd and the app segfaults! Fun times. new CC { def lang: org.polyvariant.treesitter4s.Language = langg def close() = {