Commits

Martin Felis committed ea1697e

luamodel: properly closing lua states when done

Comments (0)

Files changed (1)

addons/luamodel/luamodel.cc

 					verbose
 					)) {
 			cerr << "Error reading frame " << frame_names[i] << "." << endl;
+
+			lua_close (L);
+
 			return false;
 		}
 
 			cout << "  body id    : " << body_id << endl;
 	}
 
+	lua_close (L);
+
 	return true;
 }