title: setting a new screen with libgdx crashes my game?
body: <p>So i cant seem to figured out for the life of me why setting a new screen crashes my game, the log message i get seems pretty straight forward but i just cant find the root of it so i was hoping someone could help me out here.. Here is the log message  </p>
  
  <pre><code>java(1240,0x1e59cb000) malloc: *** error for object 0x7f8cf4ad2208: incorrect checksum for freed object - object was probably modified after being freed.
  *** set a breakpoint in malloc_error_break to debug
  </code></pre>
  
  <p>Here is the code that calls the setScreen method, I don't see where i'm modifying a freed object Hopefully someone can enlighten me on this subject</p>
  
  <pre><code>public class GameScreen implements Screen {
  //..
  public void updateWorld(float deltaTime){
  
          switch (gameState) {
              case START:
                  //..
                  break;
  
              case RUNNING:
                  //..
                  break;
  
              case GAMEOVER:
                  System.out.println("called");
                  //..
                  fishy.setGRAVITY(-20);
                  fishy.update(deltaTime);
  
                  if (gos == null) gos = new GameOverState(game);
                  gos.compareScore(curr_ig_score);
                  backgroundMusic.pause();
                  if (!gameOver.isPlaying()) gameOver.play();
                  fishy.setMOVEMENT_X(0);
  
                  updateGOSButtons();
                  break;
              case PAUSED:
                  //...
                  break;
          }
  
          //..
      }
  
  public void updateGOSButtons() {
              if (gos.isGoButtonClicked()) {
                  gameOver.stop();
                  backgroundMusic.play();
                  dispose();
                  game.setScreen(new GameScreen(game));
              }
  
              if (gos.isHomeButtonClicked()) {
                  gameOver.stop();
                  backgroundMusic.play();
                  dispose();
                  game.setScreen(new MainMenuScreen(game));
              }
  
              Gdx.input.setInputProcessor(gos.getStage());
      }
  </code></pre>
  
  <p>}</p>