[vlc-commits] macosx/plmodel: fix potential mem leak

Felix Paul Kühne git at videolan.org
Sun Jun 10 10:35:44 CEST 2018


vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun  9 18:19:02 2018 +0200| [ef4901fe7d9cff8378624d33c17dc56843958d92] | committer: Felix Paul Kühne

macosx/plmodel: fix potential mem leak

(cherry picked from commit a51cbb6feaaa8b166f601c284f08ac94d45aa5f3)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=ef4901fe7d9cff8378624d33c17dc56843958d92
---

 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 d1897f0dbd..2ca2fae823 100644
--- a/modules/gui/macosx/VLCPLModel.m
+++ b/modules/gui/macosx/VLCPLModel.m
@@ -681,6 +681,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