[dia] svg: fix leak in _parse_shape_cp()



commit 7f515fbb9da5472fcdcc232048479c6c11a7c704
Author: Hans Breuer <hans breuer org>
Date:   Fri Aug 16 16:42:58 2013 +0200

    svg: fix leak in _parse_shape_cp()

 plug-ins/svg/svg-import.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/svg/svg-import.c b/plug-ins/svg/svg-import.c
index 529e3ad..37d5155 100644
--- a/plug-ins/svg/svg-import.c
+++ b/plug-ins/svg/svg-import.c
@@ -1417,7 +1417,7 @@ _parse_shape_cp (xmlNodePtr node, real *x, real *y, gboolean *mcp)
     *x = g_ascii_strtod ((const char *)sx, NULL);
     *y = g_ascii_strtod ((const char *)sy, NULL);
     *mcp = (sm ? strcmp ((const char *)sm, "yes") == 0 : FALSE);
-    return TRUE;
+    ret = TRUE;
   }
   if (sx) xmlFree (sx);
   if (sy) xmlFree (sy);


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