If you've joined someone else's library, you can leave it by clicking the Settings cog in the toolbar.

You'll see something like this:

Did this answer your question?