[cairo] [PATCH] Fixed _cairo_surface_detach_mime_data in ecda633f887a10da650b4cd3efb17c861a6f519f.

Alexander Shulgin alex.shulgin at gmail.com
Thu Jan 28 23:24:57 PST 2010


Hi,

while browsing the git log I've noticed a small mistake in the above
commit.  Here's the patch to fix it (first finalize the array, then
init from scratch):

---
 src/cairo-surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index 234b023..b58dcb8 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -275,8 +275,8 @@ _cairo_surface_detach_mime_data (cairo_surface_t *surface)
     if (! _cairo_surface_has_mime_data (surface))
        return;

-    _cairo_user_data_array_init (&surface->mime_data);
     _cairo_user_data_array_fini (&surface->mime_data);
+    _cairo_user_data_array_init (&surface->mime_data);
 }

 cairo_status_t
-- 
1.6.3.3

--
Regards,
Alex


More information about the cairo mailing list