1. Martin Felis
  2. rbdl

Commits

Martin Felis  committed ea1697e

luamodel: properly closing lua states when done

  • Participants
  • Parent commits 62719e5
  • Branches default

Comments (0)

Files changed (1)

File addons/luamodel/luamodel.cc

View file
 					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;
 }