mutex protection of avformat, miracle avformat usage, and destrector reversal
[melted] / src / framework / mlt_properties.c
index d047da0..be4d66f 100644 (file)
@@ -342,13 +342,9 @@ void mlt_properties_close( mlt_properties this )
        property_list *list = this->private;
        int index = 0;
 
-       int debug = mlt_properties_get_int( this, "debug" );
-
        // Clean up names and values
-       for ( index = 0; index < list->count; index ++ )
+       for ( index = list->count - 1; index >= 0; index -- )
        {
-               if ( debug )
-                       fprintf( stderr, "closing %s\n", list->name[ index ] );
                free( list->name[ index ] );
                mlt_property_close( list->value[ index ] );
        }