[vlc-devel] commit: Do not heap free stack structure... ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Sep 10 20:40:42 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Sep 10 21:43:43 2008 +0300| [5521d319a8e5facefc7886f79c89ff6f9352de6b] | committer: Rémi Denis-Courmont 

Do not heap free stack structure...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5521d319a8e5facefc7886f79c89ff6f9352de6b
---

 src/misc/threads.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index df0a2bf..7e405c3 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -1059,7 +1059,9 @@ void vlc_control_cancel (int cmd, ...)
             {
                 for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next)
                      p->proc (p->data);
+#ifndef WIN32
                 free (nfo);
+#endif
 #if defined (LIBVLC_USE_PTHREAD)
                 pthread_exit (PTHREAD_CANCELLED);
 #elif defined (WIN32)




More information about the vlc-devel mailing list