Commit 3c3a11d6 authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

HACKING: document using g_auto* is o.k.

Closes: #33
parent 50f63d56
......@@ -183,3 +183,21 @@ Use minus signs instead of underscores in property names:
<property name="margin_left">12</property>
Automatic cleanup
It's recommended to use `g_auto()`, `g_autoptr()`, `g_autofree()` for
automatic resource cleanup when possible.
g_autoptr(GdkPixbuf) sigterm = pixbuf = gtk_icon_info_load_icon (info, NULL);
GdkPixbuf *pixbuf = gtk_icon_info_load_icon (info, NULL);
g_object_unref (pixbuf);
Using the above is fine since libhandy doesn't target any older glib versions
or non GCC/Clang compilers at the moment.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment