[MPlayer-cvslog] r30394 - trunk/stream/cache2.c
reimar
subversion at mplayerhq.hu
Sat Jan 23 11:53:28 CET 2010
Author: reimar
Date: Sat Jan 23 11:53:28 2010
New Revision: 30394
Log:
Zero freed pointers.
Modified:
trunk/stream/cache2.c
Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c Sat Jan 23 11:50:50 2010 (r30393)
+++ trunk/stream/cache2.c Sat Jan 23 11:53:28 2010 (r30394)
@@ -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){
More information about the MPlayer-cvslog
mailing list