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 763998 - ahc: use g_slice_new instead of g_slice_new0
ahc: use g_slice_new instead of g_slice_new0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.9.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-21 16:18 UTC by Martin Kelly
Modified: 2016-03-24 13:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-ahc-use-g_slice_new-instead-of-g_slice_new0.patch (2.41 KB, patch)
2016-03-21 16:18 UTC, Martin Kelly
committed Details | Review

Description Martin Kelly 2016-03-21 16:18:47 UTC
Created attachment 324478 [details] [review]
0001-ahc-use-g_slice_new-instead-of-g_slice_new0.patch

In many cases, we use g_slice_new0 and then immediately overwrite the
allocated memory. This is inefficient. Since we're going to immediately
overwrite it, we might as well use plain g_slice_new.
Comment 1 Sebastian Dröge (slomo) 2016-03-24 13:02:06 UTC
commit d6a17cd3cc5e56a87047f259036c713f8c66d821
Author: Martin Kelly <martin@surround.io>
Date:   Tue Mar 15 16:22:59 2016 -0700

    ahc: use g_slice_new instead of g_slice_new0
    
    In many cases, we use g_slice_new0 and then immediately overwrite the
    allocated memory. This is inefficient. Since we're going to immediately
    overwrite it, we might as well use plain g_slice_new.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763998