GNOME Bugzilla – Bug 744355
Memory allocation advice is incomplete
Last modified: 2015-02-12 14:42:22 UTC
We give two sentences of advice under the section Memory Allocation on the page C Coding Style [1]. The first is: "When dynamically allocating data on the heap either use g_new()." Or...? g_slice_alloc(), perhaps? [1] https://developer.gnome.org/programming-guidelines/unstable/c-coding-style.html.en
Created attachment 296683 [details] [review] programming-guidelines: Clarify memory management coding style Fix an ingrammatical sentence in c-coding-style, add a cross-reference to the memory-management page, and clarify (in a <comment>) on that page why we don’t mention GSlice anywhere.
Attachment 296683 [details] pushed as 5fca5a4 - programming-guidelines: Clarify memory management coding style