Revision 7267c094 audio/alsaaudio.c
b/audio/alsaaudio.c | ||
---|---|---|
136 | 136 |
for (i = 0; i < hlp->count; ++i) { |
137 | 137 |
qemu_set_fd_handler (pfds[i].fd, NULL, NULL, NULL); |
138 | 138 |
} |
139 |
qemu_free (pfds);
|
|
139 |
g_free (pfds);
|
|
140 | 140 |
} |
141 | 141 |
hlp->pfds = NULL; |
142 | 142 |
hlp->count = 0; |
... | ... | |
260 | 260 |
if (err < 0) { |
261 | 261 |
alsa_logerr (err, "Could not initialize poll mode\n" |
262 | 262 |
"Could not obtain poll descriptors\n"); |
263 |
qemu_free (pfds);
|
|
263 |
g_free (pfds);
|
|
264 | 264 |
return -1; |
265 | 265 |
} |
266 | 266 |
|
... | ... | |
288 | 288 |
while (i--) { |
289 | 289 |
qemu_set_fd_handler (pfds[i].fd, NULL, NULL, NULL); |
290 | 290 |
} |
291 |
qemu_free (pfds);
|
|
291 |
g_free (pfds);
|
|
292 | 292 |
return -1; |
293 | 293 |
} |
294 | 294 |
} |
... | ... | |
816 | 816 |
alsa_anal_close (&alsa->handle, &alsa->pollhlp); |
817 | 817 |
|
818 | 818 |
if (alsa->pcm_buf) { |
819 |
qemu_free (alsa->pcm_buf);
|
|
819 |
g_free (alsa->pcm_buf);
|
|
820 | 820 |
alsa->pcm_buf = NULL; |
821 | 821 |
} |
822 | 822 |
} |
... | ... | |
979 | 979 |
alsa_anal_close (&alsa->handle, &alsa->pollhlp); |
980 | 980 |
|
981 | 981 |
if (alsa->pcm_buf) { |
982 |
qemu_free (alsa->pcm_buf);
|
|
982 |
g_free (alsa->pcm_buf);
|
|
983 | 983 |
alsa->pcm_buf = NULL; |
984 | 984 |
} |
985 | 985 |
} |
Also available in: Unified diff