Fixed memory leaks
This commit is contained in:
@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
//initialize libconfig
|
//initialize libconfig
|
||||||
cfginit();
|
cfginit();
|
||||||
|
ao_initialize();
|
||||||
|
|
||||||
while ( (c = getopt_long(argc, argv, short_options, long_options, NULL)) != -1 ) {
|
while ( (c = getopt_long(argc, argv, short_options, long_options, NULL)) != -1 ) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
2
sound.c
2
sound.c
@@ -35,7 +35,7 @@ void *playThreadFunc(void *arg) {
|
|||||||
long rate;
|
long rate;
|
||||||
|
|
||||||
/* initializations */
|
/* initializations */
|
||||||
ao_initialize();
|
|
||||||
driver = ao_default_driver_id();
|
driver = ao_default_driver_id();
|
||||||
mpg123_init();
|
mpg123_init();
|
||||||
mh = mpg123_new(NULL, &err);
|
mh = mpg123_new(NULL, &err);
|
||||||
|
Reference in New Issue
Block a user