diff options
author | Christian Dywan <christian@twotoasts.de> | 2012-12-15 21:50:12 +0100 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2012-12-15 21:50:12 +0100 |
commit | 4d6c14684b6f8d8a9ebac98cc6b7f6aa69429e20 (patch) | |
tree | 1fa34ab683c59c6a5e9044eb87e41de9ef6c30f9 /midori/sokoke.c | |
parent | 01f5a8a56ebc5c444351db91b6e7f132c0230c21 (diff) | |
download | midori-4d6c14684b6f8d8a9ebac98cc6b7f6aa69429e20.tar.gz |
Properly free scheme in sokoke_default_for_uri
Diffstat (limited to 'midori/sokoke.c')
-rw-r--r-- | midori/sokoke.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/midori/sokoke.c b/midori/sokoke.c index 3dc0f3cc..bb62ac1e 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -152,8 +152,6 @@ sokoke_default_for_uri (const gchar* uri, GAppInfo* info; scheme = g_uri_parse_scheme (uri); - if (scheme_ptr != NULL) - *scheme_ptr = scheme; if (!scheme) return NULL; @@ -166,7 +164,9 @@ sokoke_default_for_uri (const gchar* uri, g_free (type); } #endif - if (info != NULL && scheme_ptr != NULL) + if (scheme_ptr != NULL) + *scheme_ptr = scheme; + else g_free (scheme); return info; |