aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-30 17:58:28 +0800
committerXan Lopez <xan@igalia.com>2012-03-30 17:58:28 +0800
commit1d8d37e885f68852cfdee982d573644a5aa0b6f5 (patch)
tree4ade0809d32e2a7abd41c49a7a7c83380415ca1c
parent381ce4af310607cc84ac1e84abbecda2d7d3e7d9 (diff)
downloadgsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar.gz
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar.bz2
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar.lz
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar.xz
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.tar.zst
gsoc2013-epiphany-1d8d37e885f68852cfdee982d573644a5aa0b6f5.zip
ephy-session: use g_slice_new for SessionCommand structure
-rw-r--r--src/ephy-session.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 2096bcfe4..b12cd984d 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -211,7 +211,7 @@ session_command_free (SessionCommand *cmd)
g_strfreev (cmd->args);
}
- g_free (cmd);
+ g_slice_free (SessionCommand, cmd);
g_object_unref (ephy_shell_get_default ());
}
@@ -1362,8 +1362,7 @@ ephy_session_queue_command (EphySession *session,
}
}
- /* FIXME: use g_slice_new */
- cmd = g_new0 (SessionCommand, 1);
+ cmd = g_slice_new0 (SessionCommand);
cmd->command = command;
cmd->arg = arg ? g_strdup (arg) : NULL;
cmd->args = args ? g_strdupv ((gchar **)args) : NULL;