diff options
-rw-r--r-- | src/output/WinmmOutputPlugin.cxx | 4 |
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 ¶m, 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; } |