[libadwaita/msvc] hacking: Remove the automated cleanup section



commit 78c870b65615e2c7a2115787513402bdf76a8a24
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jan 19 15:46:11 2022 +0500

    hacking: Remove the automated cleanup section

 HACKING.md | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/HACKING.md b/HACKING.md
index 81e02a8c..487a5dcb 100644
--- a/HACKING.md
+++ b/HACKING.md
@@ -392,25 +392,3 @@ Use minus signs instead of underscores in property names:
 ```xml
 <property name="margin_start">12</property>
 ```
-
-### Automatic Cleanup
-
-It's recommended to use `g_auto()`, `g_autoptr()`, `g_autofree()` for
-automatic resource cleanup when possible.
-
-*Good*:
-
-```c
-g_autoptr(GdkPixbuf) sigterm = pixbuf = gtk_icon_info_load_icon (info, NULL);
-```
-
-*Bad*:
-
-```c
-GdkPixbuf *pixbuf = gtk_icon_info_load_icon (info, NULL);
-...
-g_object_unref (pixbuf);
-```
-
-Using the above is fine since libadwaita doesn't target any older glib versions
-or non GCC/Clang compilers at the moment.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]