]> git.sesse.net Git - vlc/blobdiff - src/misc/objects.c
image.c: ImageReadUrl now tries to open the image using the stream functions if fopen...
[vlc] / src / misc / objects.c
index 9596bf8f48abfaaba03d3d43297a8f4122d4e1dd..645373344e6fb656479c86945975c3f638bc7901 100644 (file)
@@ -248,6 +248,16 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
     p_new->b_attached = VLC_FALSE;
     p_new->b_force = VLC_FALSE;
 
+    p_new->psz_header = NULL;
+
+    p_new->i_flags = 0;
+    if( p_this->i_flags & OBJECT_FLAGS_NODBG )
+        p_new->i_flags |= OBJECT_FLAGS_NODBG;
+    if( p_this->i_flags & OBJECT_FLAGS_QUIET )
+        p_new->i_flags |= OBJECT_FLAGS_QUIET;
+    if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT )
+        p_new->i_flags |= OBJECT_FLAGS_NOINTERACT;
+
     p_new->i_vars = 0;
     p_new->p_vars = (variable_t *)malloc( 16 * sizeof( variable_t ) );
 
@@ -384,6 +394,8 @@ void __vlc_object_destroy( vlc_object_t *p_this )
     free( p_this->p_vars );
     vlc_mutex_destroy( &p_this->var_lock );
 
+    if( p_this->psz_header ) free( p_this->psz_header );
+
     if( p_this->i_object_type == VLC_OBJECT_ROOT )
     {
         /* We are the root object ... no need to lock. */