diff options
author | Max Kellermann <max@duempel.org> | 2012-09-05 20:49:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-09-05 20:56:20 +0200 |
commit | 886255e38afb2e0599080fce11ff9abe4e18dd95 (patch) | |
tree | f56f48939f1b43ef29950e572179cd349539abdb /src/decoder/OpusTags.hxx | |
parent | 0240e75426f483ff558422f99e29708e3f31fdb7 (diff) | |
download | mpd-886255e38afb2e0599080fce11ff9abe4e18dd95.tar.gz mpd-886255e38afb2e0599080fce11ff9abe4e18dd95.tar.xz mpd-886255e38afb2e0599080fce11ff9abe4e18dd95.zip |
db/SimpleDatabasePlugin: fix memory leak in Visit()
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.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions