diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-07-11 20:36:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-07-11 20:36:25 +0000 |
commit | d5da9bebd47b04e430879652da7ecab9a0e24474 (patch) | |
tree | c66f5e40da5cead88c2631f927a2922561667c9c /gdk-pixbuf/queryloaders.c | |
parent | 7d8cef980b699666bd3b574c9974e1f6c26c77ee (diff) | |
download | gdk-pixbuf-d5da9bebd47b04e430879652da7ecab9a0e24474.tar.gz |
Use g_strfreev() to free mime_types. (#117219, Steve Chaplin)
2003-07-11 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free mime_types.
(#117219, Steve Chaplin)
* queryloaders.c (query_module): Handle absolute filenames properly. (#117170, Jens Elkner)
* gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by
gdk_pixbuf_format_get_mime_types() and gdk_pixbuf_format_get_extensions() must be
freed with g_strfreev().
Diffstat (limited to 'gdk-pixbuf/queryloaders.c')
-rw-r--r-- | gdk-pixbuf/queryloaders.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 0698fab24..15c3bdb98 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -64,14 +64,10 @@ query_module (const char *dir, const char *file) char **ext; const GdkPixbufModulePattern *pattern; - if (g_path_is_absolute (dir)) + if (g_path_is_absolute (file)) + path = g_strdup (file); + else path = g_build_filename (dir, file, NULL); - else { - char *cwd = g_get_current_dir (); - path = g_build_filename (cwd, dir, file, NULL); - g_free (cwd); - } - module = g_module_open (path, 0); if (module && |