aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-12 21:06:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-13 16:15:46 +0800
commitcb3a9fd4ae3bf0f74dabdfdd973898592a5f4244 (patch)
tree1d619f7462ecf82a11c859a444f7d2ed8eb804a4
parente90a360038e2428eb6b7090746bd32542eacf203 (diff)
downloadgsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar.gz
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar.bz2
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar.lz
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar.xz
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.tar.zst
gsoc2013-empathy-cb3a9fd4ae3bf0f74dabdfdd973898592a5f4244.zip
theme-adium: free the result of g_strsplit with g_strfreev
Freeing with g_free() doesn't free the content of the array. https://bugzilla.gnome.org/show_bug.cgi?id=683864
-rw-r--r--libempathy-gtk/empathy-theme-adium.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 194273d92..2e243c46d 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -1763,20 +1763,17 @@ empathy_adium_path_is_valid (const gchar *path)
/* The directory has to be *.AdiumMessageStyle per the Adium spec */
tmp = g_strsplit (path, "/", 0);
if (tmp == NULL)
- {
- g_free (tmp);
- return FALSE;
- }
+ return FALSE;
dir = tmp[g_strv_length (tmp) - 1];
if (!g_str_has_suffix (dir, ".AdiumMessageStyle"))
{
- g_free (tmp);
+ g_strfreev (tmp);
return FALSE;
}
- g_free (tmp);
+ g_strfreev (tmp);
/* The theme is not valid if there is no Info.plist */
file = g_build_filename (path, "Contents", "Info.plist",