diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-23 10:53:28 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-23 10:53:28 +0000 |
commit | 3fae575483e9f33df184596a2c8c59cd5bdb3610 (patch) | |
tree | 03396031a568ebe99deb07dbb861acc02fec8534 /stream | |
parent | 7afaecc11191c641dcbd231cae18c1aa07000dd0 (diff) | |
download | mpv-3fae575483e9f33df184596a2c8c59cd5bdb3610.tar.bz2 mpv-3fae575483e9f33df184596a2c8c59cd5bdb3610.tar.xz |
Zero freed pointers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c index 6cba788052..4906b0c153 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -292,6 +292,7 @@ void cache_uninit(stream_t *s) { kill(s->cache_pid,SIGKILL); waitpid(s->cache_pid,NULL,0); #endif + s->cache_pid = 0; } if(!c) return; #if defined(__MINGW32__) || defined(PTHREAD_CACHE) || defined(__OS2__) @@ -302,6 +303,8 @@ void cache_uninit(stream_t *s) { shmem_free(c->buffer,c->buffer_size); shmem_free(s->cache_data,sizeof(cache_vars_t)); #endif + c->buffer = NULL; + s->cache_data = NULL; } static void exit_sighandler(int x){ |