After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757927 - tests:video: Fix overlay rectangle and buffer leak
tests:video: Fix overlay rectangle and buffer leak
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-11 05:45 UTC by Vineeth
Modified: 2015-11-11 14:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix memory leak (923 bytes, patch)
2015-11-11 05:46 UTC, Vineeth
none Details | Review
fix memory leaks (1007 bytes, patch)
2015-11-11 05:56 UTC, Vineeth
committed Details | Review

Description Vineeth 2015-11-11 05:45:06 UTC
Created overlay rectangle is not being freed in video tests

==20661== 20,555 (200 direct, 20,355 indirect) bytes in 1 blocks are definitely lost in loss record 1,514 of 1,514
==20661==    at 0x402C17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==20661==    by 0x42AEBE2: g_malloc (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20661==    by 0x42C5281: g_slice_alloc (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20661==    by 0x42C579C: g_slice_alloc0 (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20661==    by 0x408312B: gst_video_overlay_rectangle_new_raw (video-overlay-composition.c:709)
==20661==    by 0x80528E8: test_overlay_composition_over_transparency (video.c:2663)
==20661==    by 0x40C2BAA: srunner_run (check_run.c:450)
==20661==    by 0x40C2C62: srunner_run_all (check_run.c:674)
==20661==    by 0x40B5A97: gst_check_run_suite (gstcheck.c:825)
==20661==    by 0x804A667: main (video.c:2728)
Comment 1 Vineeth 2015-11-11 05:46:15 UTC
Created attachment 315226 [details] [review]
fix memory leak
Comment 2 Vineeth 2015-11-11 05:56:48 UTC
Created attachment 315227 [details] [review]
fix memory leaks

Fix buffer leak as well.
Comment 3 Sebastian Dröge (slomo) 2015-11-11 14:48:08 UTC
commit b0b0536f91a1bbd23a93809c82d23e2c47e90d5f
Author: Vineeth TM <vineeth.tm@samsung.com>
Date:   Wed Nov 11 14:44:55 2015 +0900

    tests:video: Fix overlay rectangle and buffer leak
    
    Created overlay rectangle is not being freed in video tests
    pix2 buffer is being created and not freed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757927