+2004-08-30 Wim Taymans <wim@fluendo.com>
+
+ * gst/tcp/gstfdset.c: (gst_fdset_free), (gst_fdset_wait):
+ * gst/tcp/gstmultifdsink.c: (gst_multifdsink_add),
+ (gst_multifdsink_remove_client_link),
+ (gst_multifdsink_client_queue_buffer),
+ (gst_multifdsink_handle_client_write):
+ * gst/tcp/gsttcpclientsink.c: (gst_tcpclientsink_init_send):
+ * gst/tcp/gsttcpclientsrc.c: (gst_tcpclientsrc_init_receive):
+ Fix some memory leaks.
+
2004-08-30 Thomas Vander Stichele <thomas at apestaart dot org>
Patch by: David Schleef
break;
case GST_FDSET_MODE_POLL:
g_free (set->pollfds);
+ g_mutex_free (set->poll_lock);
break;
case GST_FDSET_MODE_EPOLL:
g_warning ("implement me");
g_get_current_time (&now);
client->disconnect_time = GST_TIMEVAL_TO_TIME (now);
+ /* free client buffers */
+ g_slist_foreach (client->sending, (GFunc) gst_data_unref, NULL);
+ g_slist_free (client->sending);
+ client->sending = NULL;
+
/* unlock the mutex before signaling because the signal handler
* might query some properties */
g_mutex_unlock (sink->clientslock);
this->server_sin.sin_family = AF_INET; /* network socket */
this->server_sin.sin_port = htons (this->port); /* on port */
this->server_sin.sin_addr.s_addr = inet_addr (ip); /* on host ip */
+ g_free (ip);
GST_DEBUG_OBJECT (this, "connecting to server");
ret = connect (this->sock_fd, (struct sockaddr *) &this->server_sin,
this->server_sin.sin_family = AF_INET; /* network socket */
this->server_sin.sin_port = htons (this->port); /* on port */
this->server_sin.sin_addr.s_addr = inet_addr (ip); /* on host ip */
+ g_free (ip);
GST_DEBUG_OBJECT (this, "connecting to server");
ret = connect (this->sock_fd, (struct sockaddr *) &this->server_sin,