[vlc-commits] macosx/plmodel: fix potential mem leak
    Felix Paul Kühne 
    git at videolan.org
       
    Sat Jun  9 18:53:13 CEST 2018
    
    
  
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun  9 18:19:02 2018 +0200| [a51cbb6feaaa8b166f601c284f08ac94d45aa5f3] | committer: Felix Paul Kühne
macosx/plmodel: fix potential mem leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a51cbb6feaaa8b166f601c284f08ac94d45aa5f3
---
 modules/gui/macosx/VLCPLModel.m | 1 +
 1 file changed, 1 insertion(+)
diff --git a/modules/gui/macosx/VLCPLModel.m b/modules/gui/macosx/VLCPLModel.m
index 320473325f..79c53ef672 100644
--- a/modules/gui/macosx/VLCPLModel.m
+++ b/modules/gui/macosx/VLCPLModel.m
@@ -692,6 +692,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
         playlist_item_t *p_new_parent = playlist_ItemGetById(p_playlist, [targetItem plItemId]);
         if (!p_new_parent) {
             PL_UNLOCK;
+            free(pp_items);
             return NO;
         }
 
    
    
More information about the vlc-commits
mailing list