Mercurial > audlegacy-plugins
comparison src/OSS/OSS.c @ 2692:c1913516022a
Use g_free() as it should be used.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Fri, 06 Jun 2008 14:51:38 +0300 |
| parents | 1d2596522075 |
| children | 77439faa1934 |
comparison
equal
deleted
inserted
replaced
| 2691:1d2596522075 | 2692:c1913516022a |
|---|---|
| 88 } | 88 } |
| 89 | 89 |
| 90 void oss_cleanup(void) | 90 void oss_cleanup(void) |
| 91 { | 91 { |
| 92 if (oss_cfg.alt_audio_device) { | 92 if (oss_cfg.alt_audio_device) { |
| 93 free(oss_cfg.alt_audio_device); | 93 g_free(oss_cfg.alt_audio_device); |
| 94 oss_cfg.alt_audio_device = NULL; | 94 oss_cfg.alt_audio_device = NULL; |
| 95 } | 95 } |
| 96 | 96 |
| 97 if (oss_cfg.alt_mixer_device) { | 97 if (oss_cfg.alt_mixer_device) { |
| 98 free(oss_cfg.alt_mixer_device); | 98 g_free(oss_cfg.alt_mixer_device); |
| 99 oss_cfg.alt_mixer_device = NULL; | 99 oss_cfg.alt_mixer_device = NULL; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 OutputPlugin oss_op = { | 103 OutputPlugin oss_op = { |
