[vlc-commits] [Git][videolan/vlc][master] 2 commits: opengl: interop: fix string var leak

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Jan 5 14:13:31 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
cc83b56a by Thomas Guillem at 2024-01-05T13:11:22+00:00
opengl: interop: fix string var leak

- - - - -
94098c98 by Thomas Guillem at 2024-01-05T13:11:22+00:00
spu: fix scaled_region_pics leak when rejected

spu_Channel_CleanEntry() is doing:
 - Destroying scaled_region_pics vector
 - spu_PrerenderCancel()
 - subpicture_Delete()

- - - - -


2 changed files:

- modules/video_output/opengl/interop.c
- src/video_output/vout_subpictures.c


Changes:

=====================================
modules/video_output/opengl/interop.c
=====================================
@@ -199,6 +199,7 @@ vlc_gl_interop_New(struct vlc_gl_t *gl, vlc_video_context *context,
         char *interop_name = var_InheritString(interop, "glinterop");
         interop->module = vlc_module_load(logger, "glinterop", interop_name,
                                           true, LoadInterop, interop);
+        free(interop_name);
     }
     else
     {


=====================================
src/video_output/vout_subpictures.c
=====================================
@@ -814,8 +814,7 @@ spu_SelectSubpictures(spu_t *spu, vlc_tick_t system_now,
 
             if (is_rejected)
             {
-                spu_PrerenderCancel(sys, current);
-                subpicture_Delete(current);
+                spu_Channel_CleanEntry(sys, render_entry);
                 vlc_vector_remove(&channel->entries, index);
             }
             else



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/db7e3d4dad7bd4a05e96cd04fe3397102c2ac646...94098c98ede040dd2fe8ddd34df1394e10ce2054

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/db7e3d4dad7bd4a05e96cd04fe3397102c2ac646...94098c98ede040dd2fe8ddd34df1394e10ce2054
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list