• Jehan's avatar
    plug-ins: some cleanup in file-webp. · 2ddc2ab7
    Jehan authored
    - use g_file_peek_path() instead of g_file_get_path() in various places.
      Less prone to memory management bugs (not forgetting to free in all
      cases). Also it is often more efficient, especially for local files
      where the _peek_ variant does not even need to allocate any memory as
      path is already hanging around (and local files are the most common
      use cases, I believe!).
    - Also gets rid of one GFile creation with g_file_new_for_path() from
      the path returned from another GFile! We can just use the same GFile
      as it is not freed and perfectly usable.