summaryrefslogtreecommitdiffstats
path: root/python_modules/__init__.py
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-08-23 14:14:22 +0300
committerAlon Levy <alevy@redhat.com>2011-08-23 18:30:26 +0300
commit0b169b7014d657da6a64848168db7136ecbb191f (patch)
treedd62e290c59cfcd1ed7d9814278bff1ab24ba899 /python_modules/__init__.py
parent1078dc04edc406950e5f6d91bae456411eaa4a47 (diff)
downloadspice-0b169b7014d657da6a64848168db7136ecbb191f.tar.gz
spice-0b169b7014d657da6a64848168db7136ecbb191f.tar.xz
spice-0b169b7014d657da6a64848168db7136ecbb191f.zip
server/snd_worker.c: add reference counting to SndChannel
Fixes a valgrind discovered possible bug in spice-server - valgrind on test_playback saw it, didn't see it happen with qemu. The problem is that the frames buffers returned by spice_server_playback_get_buffer are part of the malloc'ed SndChannel, whose lifetime is smaller then that of SndWorker. As a result a pointer to a previously returned spice_server_playback_get_buffer could remain and be used after SndChannel has been freed because the client disconnected.
Diffstat (limited to 'python_modules/__init__.py')
0 files changed, 0 insertions, 0 deletions