[gegl] Don’t use BackendFile for the buffer created by gegl_buffer_load



commit dd4b19ca085d866102254d136ff7df3d23d0a2bd
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Sat Mar 15 00:26:57 2014 -0700

    Don’t use BackendFile for the buffer created by gegl_buffer_load
    
    Opening the file with gegl_buffer_open or by passing the constructor
    an existing path can be used to create a live file buffer; using
    gegl_buffer_load will read the data into a new buffer not associated
    with the file.

 gegl/buffer/gegl-buffer-load.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-load.c b/gegl/buffer/gegl-buffer-load.c
index b7005fb..5a6523f 100644
--- a/gegl/buffer/gegl-buffer-load.c
+++ b/gegl/buffer/gegl-buffer-load.c
@@ -279,7 +279,6 @@ gegl_buffer_load (const gchar *path)
                       "tile-height", info->header.tile_height,
                       "height", info->header.height,
                       "width", info->header.width,
-                      "path", path,
                       NULL);
 
   /* sanity check, should probably report error condition and return safely instead


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