[gimp] plug-ins: depend on librsvg >= 2.36.0 and half-undeprecate file-svg



commit 0f656b9543f3ec3e415a0d4d536bd1ba60be246d
Author: Michael Natterer <mitch gimp org>
Date:   Tue Apr 24 22:10:49 2012 +0200

    plug-ins: depend on librsvg >= 2.36.0 and half-undeprecate file-svg

 configure.ac               |    2 +-
 plug-ins/common/file-svg.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9ebeca3..4d11efe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,7 @@ m4_define([fontconfig_required_version], [2.2.0])
 m4_define([gtkdoc_required_version], [1.0])
 m4_define([webkit_required_version], [1.6.1])
 m4_define([alsa_required_version], [1.0.0])
-m4_define([rsvg_required_version], [2.34.2])
+m4_define([rsvg_required_version], [2.36.0])
 m4_define([wmf_required_version], [0.2.8])
 m4_define([pygtk_required_version], [2.10.4])
 m4_define([poppler_required_version], [0.12.4])
diff --git a/plug-ins/common/file-svg.c b/plug-ins/common/file-svg.c
index d18c766..30447b5 100644
--- a/plug-ins/common/file-svg.c
+++ b/plug-ins/common/file-svg.c
@@ -473,7 +473,7 @@ load_rsvg_pixbuf (const gchar  *filename,
   if (success)
     pixbuf = rsvg_handle_get_pixbuf (handle);
 
-  rsvg_handle_free (handle);
+  g_object_unref (handle);
 
   return pixbuf;
 }
@@ -559,7 +559,7 @@ load_rsvg_size (const gchar  *filename,
       }
 
   g_io_channel_unref (io);
-  rsvg_handle_free (handle);
+  g_object_unref (handle);
 
   if (vals->width  < 1)  vals->width  = 1;
   if (vals->height < 1)  vals->height = 1;



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