]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/wingdi.c
misc/objects.c: Don't rely on vlc_object_destroy() to destroy objects, but expects...
[vlc] / modules / video_output / msw / wingdi.c
index 5cf577f539f6cf55ef9496fa63910549cb80fec5..f969312ff9d1a2f922175a23f43bd64b27efffa9 100755 (executable)
@@ -251,7 +251,7 @@ static int OpenVideo ( vlc_object_t *p_this )
                            E_(EventThread), 0, 1 ) )
     {
         msg_Err( p_vout, "cannot create Vout EventThread" );
-        vlc_object_destroy( p_vout->p_sys->p_event );
+        vlc_object_release( p_vout->p_sys->p_event );
         p_vout->p_sys->p_event = NULL;
         goto error;
     }
@@ -325,7 +325,7 @@ static void CloseVideo ( vlc_object_t *p_this )
         }
 
         vlc_thread_join( p_vout->p_sys->p_event );
-        vlc_object_destroy( p_vout->p_sys->p_event );
+        vlc_object_release( p_vout->p_sys->p_event );
     }
     vlc_mutex_destroy( &p_vout->p_sys->lock );