X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obrender%2Fimage.c;h=8ff9bf106b0ef204b339a77527dafcc613934ea8;hb=937ba3c7e791111bd94153866545dd9bb8334c7f;hp=0164a8c8c3a5df8e42809e30999ea08e0d4107cb;hpb=4e6c0086a657399d989f2e4849f7b397d7d4efbc;p=chaz%2Fopenbox diff --git a/obrender/image.c b/obrender/image.c index 0164a8c8..8ff9bf10 100644 --- a/obrender/image.c +++ b/obrender/image.c @@ -652,10 +652,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 +664,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.