Fixed memory leaks

This commit is contained in:
2017-12-15 17:36:21 +01:00
parent a4e95087e1
commit 27fe8029dc
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
//initialize libconfig
cfginit();
ao_initialize();
while ( (c = getopt_long(argc, argv, short_options, long_options, NULL)) != -1 ) {
switch (c) {

View File

@@ -35,7 +35,7 @@ void *playThreadFunc(void *arg) {
long rate;
/* initializations */
ao_initialize();
driver = ao_default_driver_id();
mpg123_init();
mh = mpg123_new(NULL, &err);