]> git.mxchange.org Git - simgear.git/blobdiff - simgear/nasal/gc.c
cppbind.Ghost: clean up a bit
[simgear.git] / simgear / nasal / gc.c
index 9773c795237c6e4ae5bc0a565490bcbf878a9444..a965aa79c523e3f881a9b4d3e2ad1d53b69e4239 100644 (file)
@@ -54,6 +54,7 @@ static void garbageCollect()
     }
 
     mark(globals->save);
+    mark(globals->save_hash);
     mark(globals->symbols);
     mark(globals->meRef);
     mark(globals->argRef);
@@ -118,6 +119,15 @@ static void bottleneck()
     }
 }
 
+void naGC()
+{
+    LOCK();
+    globals->needGC = 1;
+    bottleneck();
+    UNLOCK();
+    naCheckBottleneck();
+}
+
 void naCheckBottleneck()
 {
     if(globals->bottleneck) { LOCK(); bottleneck(); UNLOCK(); }