Mercurial > audlegacy-plugins
comparison src/psf2/plugin.c @ 2748:fe0d1cff2cd0
memory leak cleanups.
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Mon, 30 Jun 2008 23:11:47 -0500 |
| parents | ead11a126bdd |
| children | 290357060cdb |
comparison
equal
deleted
inserted
replaced
| 2747:ead11a126bdd | 2748:fe0d1cff2cd0 |
|---|---|
| 115 while (data->playing) | 115 while (data->playing) |
| 116 { | 116 { |
| 117 psf2_execute(data); | 117 psf2_execute(data); |
| 118 } | 118 } |
| 119 | 119 |
| 120 free(buffer); | 120 g_free(buffer); |
| 121 g_free(path); | 121 g_free(path); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void psf2_update(unsigned char *buffer, long count, InputPlayback *playback) | 124 void psf2_update(unsigned char *buffer, long count, InputPlayback *playback) |
| 125 { | 125 { |
| 207 aud_tuple_associate_string(t, FIELD_QUALITY, NULL, "sequenced"); | 207 aud_tuple_associate_string(t, FIELD_QUALITY, NULL, "sequenced"); |
| 208 aud_tuple_associate_string(t, FIELD_CODEC, NULL, "PlayStation2 Audio"); | 208 aud_tuple_associate_string(t, FIELD_CODEC, NULL, "PlayStation2 Audio"); |
| 209 aud_tuple_associate_string(t, -1, "console", "PlayStation 2"); | 209 aud_tuple_associate_string(t, -1, "console", "PlayStation 2"); |
| 210 | 210 |
| 211 free(c); | 211 free(c); |
| 212 g_free(buf); | |
| 212 | 213 |
| 213 return t; | 214 return t; |
| 214 } | 215 } |
| 215 | 216 |
| 216 gchar *psf2_fmts[] = { "psf2", "minipsf2", NULL }; | 217 gchar *psf2_fmts[] = { "psf2", "minipsf2", NULL }; |
