Skip to content

Commit

Permalink
test: opengl/filters: release leaking picture
Browse files Browse the repository at this point in the history
Fix the following leak:

    Direct leak of 440 byte(s) in 1 object(s) allocated from:
        #0 0x7f16238e1369 in __interceptor_malloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:69
        #1 0x7f162362bb1b in picture_NewFromFormat ../../src/misc/picture.c:271
        videolan#2 0x55a72c5485c7 in test_opengl_offscreen ../../test/modules/video_output/opengl/filters.c:158
        videolan#3 0x55a72c547005 in main ../../test/modules/video_output/opengl/filters.c:294
        videolan#4 0x7f162314c84f  (/usr/lib/libc.so.6+0x2384f) (BuildId: 2f005a79cd1a8e385972f5a102f16adba414d75e)
  • Loading branch information
alexandre-janniaux authored and jbkempf committed Jul 12, 2023
1 parent ddac94b commit a0f1dc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/modules/video_output/opengl/filters.c
Expand Up @@ -213,6 +213,8 @@ static void test_opengl_offscreen(

vlc_gl_ReleaseCurrent(gl);
vlc_gl_Delete(gl);

picture_Release(picture);
}

int main( int argc, char **argv )
Expand Down

0 comments on commit a0f1dc3

Please sign in to comment.