]> git.sesse.net Git - vlc/blobdiff - src/win32/specific.c
Remove pl_Release, and rename pl_Hold back to pl_Get
[vlc] / src / win32 / specific.c
index 1478ca870e9a2af4f0cd66dff4cc7ec4a306e666..5662e222cb0e670d94094710b89f9b408728b4e2 100644 (file)
@@ -322,8 +322,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
         if( !p_this ) return 0;
 
         /* Add files to the playlist */
-        p_playlist = pl_Hold( p_this );
-        if( !p_playlist ) return 0;
+        p_playlist = pl_Get( p_this );
 
         if( pwm_data->lpData )
         {
@@ -363,8 +362,6 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
 
             free( ppsz_argv );
         }
-
-        vlc_object_release( p_playlist );
     }
 
     return DefWindowProc( hwnd, uMsg, wParam, lParam );