summaryrefslogtreecommitdiff
path: root/docs/CODING-STYLE.md
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-03 06:24:58 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-03-14 14:56:42 -0400
commit83d14bfa98a0d11a59e59753391ab33f678a27d4 (patch)
tree083c0b02d4b68e39c5b55d4251b72bd9a95650f8 /docs/CODING-STYLE.md
parentf0c076619de62b43944fdfe5795b678038676fcf (diff)
downloadgtk+-83d14bfa98a0d11a59e59753391ab33f678a27d4.tar.gz
CODING-STYLE: Drop mention of g_slice
Diffstat (limited to 'docs/CODING-STYLE.md')
-rw-r--r--docs/CODING-STYLE.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/CODING-STYLE.md b/docs/CODING-STYLE.md
index d48df10f6f..ee3674a192 100644
--- a/docs/CODING-STYLE.md
+++ b/docs/CODING-STYLE.md
@@ -678,11 +678,10 @@ Interfaces must have the following macros:
### Memory allocation
-When dynamically allocating data on the heap either use `g_new()` or,
-if allocating multiple small data structures, `g_slice_new()`.
+When dynamically allocating data on the heap use `g_new()`.
Public structure types should always be returned after being zero-ed,
-either explicitly for each member, or by using `g_new0()` or `g_slice_new0()`.
+either explicitly for each member, or by using `g_new0()`.
### Macros