• Max Kellermann's avatar
    db/SimpleDatabasePlugin: fix memory leak in Visit() · 886255e3
    Max Kellermann authored
    When visiting a song, GetSong() was called, but this object was never
    returned by calling ReturnSong().  This patch locks the database only
    once in Visit() and passes the original song object to the visitor,
    avoiding the copy.
    886255e3
SimpleDatabasePlugin.cxx 7.58 KB