In the book, Harry disposes of the Elder Wand by laying it back in Dumbledores tomb. He believes that if he dies a natural death while still having the true ownership of the wand, its power will be broken and no one will be able to have such power. Harrys decision to leave the wand in Dumbledores tomb is based on his belief that no one should have that kind of power. In contrast, in the movie, Harry snaps the wand in half and throws it off a bridge. However, its worth noting that the fate of the Elder Wand varied from the book to the movie.