# HG changeset patch
# User renatofilho
# Date 1165412002 0
# Node ID 0ef699880d591997fa6440f78dff02a66cc6fd8b
# Parent  0d1244aabe171fb5aa1c4ece453590d9e882e109
[svn r203]

diff -r 0d1244aabe17 -r 0ef699880d59 gmyth/src/gmyth_file_transfer.c
--- a/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 02:06:57 2006 +0000
+++ b/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 13:33:22 2006 +0000
@@ -199,12 +199,16 @@
 {
   gboolean ret = TRUE;
   
-  g_return_val_if_fail( transfer != NULL, FALSE );
+  g_return_val_if_fail (transfer != NULL, FALSE);
+  g_return_val_if_fail (filename != NULL, FALSE);
   
-  if (filename != NULL)
+  if (transfer->filename != NULL)
   {
-  	transfer->filename = g_strdup (filename);
+    g_free (transfer->filename);
+    transfer->filename = NULL;
   }
+
+  transfer->filename = g_strdup (filename);
   
   /* configure the control socket */
   if (transfer->control_sock == NULL) { 
diff -r 0d1244aabe17 -r 0ef699880d59 gmyth/src/gmyth_monitor_handler.c
--- a/gmyth/src/gmyth_monitor_handler.c	Wed Dec 06 02:06:57 2006 +0000
+++ b/gmyth/src/gmyth_monitor_handler.c	Wed Dec 06 13:33:22 2006 +0000
@@ -154,7 +154,7 @@
 
   if ( monitor->backend_msgs != NULL )  
   {
-  	g_hash_table_unref( monitor->backend_msgs );
+  	g_hash_table_destroy ( monitor->backend_msgs );
   	monitor->backend_msgs = NULL;
   }