]> Dogcows Code - chaz/openbox/blobdiff - obrender/image.c
Include rsvg-cairo.h for cairo-specific things
[chaz/openbox] / obrender / image.c
index 0164a8c8c3a5df8e42809e30999ea08e0d4107cb..57bccd2120925cd1eec1313749f4dfe6e49ef10e 100644 (file)
@@ -26,6 +26,7 @@
 #endif
 #ifdef USE_LIBRSVG
 #include <librsvg/rsvg.h>
+#include <librsvg/rsvg-cairo.h>
 #endif
 
 #include <glib.h>
@@ -652,10 +653,9 @@ RrImage* RrImageNewFromName(RrImageCache *cache, const gchar *name)
     }
 #endif
 
-    g_free(path);
-
     if (!loaded) {
         g_message("Cannot load image \"%s\" from file \"%s\"", name, path);
+        g_free(path);
 #if defined(USE_LIBRSVG)
         DestroyRsvgLoader(rsvg_loader);
 #endif
@@ -665,6 +665,8 @@ RrImage* RrImageNewFromName(RrImageCache *cache, const gchar *name)
         return NULL;
     }
 
+    g_free(path);
+
     /* get an RrImage that contains an RrImageSet with this picture in it.
        the RrImage might be new, or reused if the picture was already in the
        cache.
This page took 0.019941 seconds and 4 git commands to generate.