[vlc-commits] [Git][videolan/vlc][master] 3 commits: vout: xcb: fix leak

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 2 13:07:10 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a4a2925c by Francois Cartegnie at 2023-09-02T12:42:26+00:00
vout: xcb: fix leak

- - - - -
e248efa4 by Francois Cartegnie at 2023-09-02T12:42:26+00:00
vout: opengl: fix leak

- - - - -
d94f5077 by Francois Cartegnie at 2023-09-02T12:42:26+00:00
vout: opengl: use proper init/clean for input format update

fixes leak with palette

- - - - -


3 changed files:

- modules/video_output/opengl/display.c
- modules/video_output/opengl/vout_helper.c
- modules/video_output/xcb/window.c


Changes:

=====================================
modules/video_output/opengl/display.c
=====================================
@@ -180,6 +180,8 @@ static void PlacePicture(vout_display_t *vd, vout_display_place_t *place,
         };
     }
     sys->place_changed = true;
+
+    video_format_Clean(&source);
 }
 
 /**


=====================================
modules/video_output/opengl/vout_helper.c
=====================================
@@ -253,7 +253,8 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
 
     /* Forward to the core the changes to the input format requested by the
      * interop */
-    *fmt = vgl->interop->fmt_in;
+    video_format_Clean(fmt);
+    video_format_Copy(fmt, &vgl->interop->fmt_in);
 
     if (subpicture_chromas) {
         *subpicture_chromas = gl_subpicture_chromas;


=====================================
modules/video_output/xcb/window.c
=====================================
@@ -1071,6 +1071,7 @@ static void Close (vlc_window_t *wnd)
     DeinitKeyboardExtension(wnd);
     xcb_disconnect (conn);
     free (wnd->display.x11);
+    free(p_sys->displays);
 }
 
 /*** Embedded drawable support ***/



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/666962880c5a10de3e990903bee66e16ca7c1da4...d94f507747a0c67ea7025256d30d313ceb6a0a11

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/666962880c5a10de3e990903bee66e16ca7c1da4...d94f507747a0c67ea7025256d30d313ceb6a0a11
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