summaryrefslogtreecommitdiff
path: root/src/bacon-message-connection.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2003-02-07 20:14:46 +0000
committerBastien Nocera <hadess@src.gnome.org>2003-02-07 20:14:46 +0000
commit500877cd4a878876a988f334db60d77389131a26 (patch)
tree29dcd6901e722866cb52d7ff60c50461cb346a7e /src/bacon-message-connection.c
parent606bdce37734ee24429268353063d36137742af5 (diff)
updated from libbacon added plenty of command-line options to control an
2003-02-07 Bastien Nocera <hadess@hadess.net> * data/totem.schemas.in: * src/bacon-message-connection.c: (bacon_message_connection_free): updated from libbacon * src/totem.c: (totem_action_exit), (totem_action_remote), (totem_button_pressed_remote_cb), (totem_message_connection_receive_cb), (process_command_line), (main): added plenty of command-line options to control an already launched totem, enqueue is the default action, only one instance of totem can be launched at a time (Closes: #94410)
Diffstat (limited to 'src/bacon-message-connection.c')
-rw-r--r--src/bacon-message-connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bacon-message-connection.c b/src/bacon-message-connection.c
index f047295b..3c7c8160 100644
--- a/src/bacon-message-connection.c
+++ b/src/bacon-message-connection.c
@@ -173,13 +173,15 @@ bacon_message_connection_free (BaconMessageConnection *conn)
g_return_if_fail (conn != NULL);
g_return_if_fail (conn->path != NULL);
- close (conn->fd);
if (conn->is_server == TRUE)
{
g_io_channel_shutdown (conn->chan, FALSE, NULL);
g_io_channel_unref (conn->chan);
unlink (conn->path);
+ } else {
+ close (conn->fd);
}
+
g_free (conn->path);
g_free (conn);
}