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 755201 - playback-test: Dont free null array on exit
playback-test: Dont free null array on exit
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal normal
: 1.5.91
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-18 05:16 UTC by RaviKiran
Modified: 2015-09-18 08:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
free array only if not null (1002 bytes, patch)
2015-09-18 05:18 UTC, RaviKiran
committed Details | Review

Description RaviKiran 2015-09-18 05:16:23 UTC
./playback-test 1 "videotestsrc ! autovideosink" throws following error message when the app is closed, as g_array_free is called with null array.
"(lt-playback-test:6845): GLib-CRITICAL **: g_array_free: assertion 'array' failed".
Comment 1 RaviKiran 2015-09-18 05:18:17 UTC
Created attachment 311602 [details] [review]
free array only if not null

Patch attached. Please review.
Comment 2 Tim-Philipp Müller 2015-09-18 08:04:10 UTC
commit 53eb6a750256d0546ee9a34c744a4352d483b352
Author: Ravi Kiran K N <ravi.kiran@samsung.com>
Date:   Fri Sep 18 10:59:46 2015 +0530

    playback-test: avoid critical on exit
    
    Only free vis_entries array when not null on exit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755201