Commit 5521d319 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not heap free stack structure...

parent 0ed09d33
...@@ -1059,7 +1059,9 @@ void vlc_control_cancel (int cmd, ...) ...@@ -1059,7 +1059,9 @@ void vlc_control_cancel (int cmd, ...)
{ {
for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next) for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next)
p->proc (p->data); p->proc (p->data);
#ifndef WIN32
free (nfo); free (nfo);
#endif
#if defined (LIBVLC_USE_PTHREAD) #if defined (LIBVLC_USE_PTHREAD)
pthread_exit (PTHREAD_CANCELLED); pthread_exit (PTHREAD_CANCELLED);
#elif defined (WIN32) #elif defined (WIN32)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment