macosx: Fix some input_item_t leaks.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 11 Apr 2008 23:23:52 +0000 (01:23 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 11 Apr 2008 23:24:16 +0000 (01:24 +0200)
modules/gui/macosx/applescript.m
modules/gui/macosx/playlist.m
modules/gui/macosx/wizard.m

index f64340e..83dbb20 100644 (file)
@@ -61,6 +61,7 @@
             playlist_AddInput( p_playlist, p_input, PLAYLIST_INSERT,
                                PLAYLIST_END, VLC_TRUE, VLC_FALSE );
 
+            vlc_gc_decref( p_input );
 
             o_url = [NSURL fileURLWithPath: o_urlString];
             if( o_url != nil )
index c05933f..09c3c13 100644 (file)
             p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
             playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
         }
+        vlc_gc_decref( p_input );
     }
     [self playlistUpdated];
     vlc_object_release( p_playlist );
             p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
             playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
         }
+        vlc_gc_decref( p_input );
     }
     [self playlistUpdated];
     vlc_object_release( p_playlist );
index d31ac1e..5d2974f 100644 (file)
@@ -1304,6 +1304,7 @@ static VLCWizard *_o_sharedInstance = nil;
                           p_item );
             }
 
+            vlc_gc_decref( p_input );
             x += 1;
         }