[gtk+] docs: Region returned by gdk_cairo_region_create_from_surface() should be freed
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] docs: Region returned by gdk_cairo_region_create_from_surface() should be freed
- Date: Mon, 11 Oct 2010 00:17:59 +0000 (UTC)
commit 90096832479de04791db5e034df25831b97a828e
Author: Javier Jardón <jjardon gnome org>
Date: Mon Oct 11 02:10:24 2010 +0200
docs: Region returned by gdk_cairo_region_create_from_surface() should be freed
gdk/gdkcairo.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 61bfd3c..4e7c8ff 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -418,8 +418,9 @@ _gdk_cairo_surface_extents (cairo_surface_t *surface,
* is more than 50% opaque. This function takes into account device
* offsets that might be set with cairo_surface_set_device_offset().
*
- * Returns: A new region
- **/
+ * Returns: A #cairo_region_t. This must be freed with cairo_region_destroy()
+ * when you are done.
+ */
cairo_region_t *
gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]