aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/WinmmOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 22:10:42 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 22:47:25 +0200
commit77429b6dd35e23efac92630bab35d935b9496345 (patch)
tree218d9911e1bd60d93306e681803848e65368e50d /src/output/WinmmOutputPlugin.cxx
parent84d20d9e433028125bfe36557ad54a28b97914b2 (diff)
downloadmpd-77429b6dd35e23efac92630bab35d935b9496345.tar.gz
mpd-77429b6dd35e23efac92630bab35d935b9496345.tar.xz
mpd-77429b6dd35e23efac92630bab35d935b9496345.zip
output/winmm: use delete instead of g_free()
Diffstat (limited to '')
-rw-r--r--src/output/WinmmOutputPlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/WinmmOutputPlugin.cxx b/src/output/WinmmOutputPlugin.cxx
index d3f74dd44..44d0a8a5f 100644
--- a/src/output/WinmmOutputPlugin.cxx
+++ b/src/output/WinmmOutputPlugin.cxx
@@ -112,14 +112,14 @@ winmm_output_init(const config_param &param, Error &error)
{
WinmmOutput *wo = new WinmmOutput();
if (!ao_base_init(&wo->base, &winmm_output_plugin, param, error)) {
- g_free(wo);
+ delete wo;
return nullptr;
}
const char *device = param.GetBlockValue("device");
if (!get_device_id(device, &wo->device_id, error)) {
ao_base_finish(&wo->base);
- g_free(wo);
+ delete wo;
return nullptr;
}