2007-06-23 Emmanuele Bassi <ebassi@gnome.org>
* glib/tmpl/memory.sgml: Add a clarification about pairing the
memory allocation and free functions, and not mix system's
malloc/free with the corresponding GLib ones. (#450216, Hubert
Figuiere)
svn path=/trunk/; revision=5586
+2007-06-23 Emmanuele Bassi <ebassi@gnome.org>
+
+ * glib/tmpl/memory.sgml: Add a clarification about pairing the
+ memory allocation and free functions, and not mix system's
+ malloc/free with the corresponding GLib ones. (#450216, Hubert
+ Figuiere)
+
2007-06-18 Matthias Clasen <mclasen@redhat.com>
* === Released 2.13.5 ===
<para>
These functions provide support for allocating and freeing memory.
</para>
+
<note>
<para>
If any call to allocate memory fails, the application is terminated.
</para>
</note>
+<note>
+<para>
+It's important to match g_malloc() with g_free(), plain malloc() with free(),
+and (if you're using C++) new with delete and new[] with delete[]. Otherwise
+bad things can happen, since these allocators may use different memory
+pools (and new/delete call constructors and destructors). See also
+g_mem_set_vtable().
+</para>
+</note>
+
<!-- ##### SECTION See_Also ##### -->
<para>