[svn r203] trunk
authorrenatofilho
Wed Dec 06 13:33:22 2006 +0000 (2006-12-06)
branchtrunk
changeset 2020ef699880d59
parent 201 0d1244aabe17
child 203 a43fed947ec8
[svn r203]
gmyth/src/gmyth_file_transfer.c
gmyth/src/gmyth_monitor_handler.c
     1.1 --- a/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 02:06:57 2006 +0000
     1.2 +++ b/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 13:33:22 2006 +0000
     1.3 @@ -199,12 +199,16 @@
     1.4  {
     1.5    gboolean ret = TRUE;
     1.6    
     1.7 -  g_return_val_if_fail( transfer != NULL, FALSE );
     1.8 +  g_return_val_if_fail (transfer != NULL, FALSE);
     1.9 +  g_return_val_if_fail (filename != NULL, FALSE);
    1.10    
    1.11 -  if (filename != NULL)
    1.12 +  if (transfer->filename != NULL)
    1.13    {
    1.14 -  	transfer->filename = g_strdup (filename);
    1.15 +    g_free (transfer->filename);
    1.16 +    transfer->filename = NULL;
    1.17    }
    1.18 +
    1.19 +  transfer->filename = g_strdup (filename);
    1.20    
    1.21    /* configure the control socket */
    1.22    if (transfer->control_sock == NULL) { 
     2.1 --- a/gmyth/src/gmyth_monitor_handler.c	Wed Dec 06 02:06:57 2006 +0000
     2.2 +++ b/gmyth/src/gmyth_monitor_handler.c	Wed Dec 06 13:33:22 2006 +0000
     2.3 @@ -154,7 +154,7 @@
     2.4  
     2.5    if ( monitor->backend_msgs != NULL )  
     2.6    {
     2.7 -  	g_hash_table_unref( monitor->backend_msgs );
     2.8 +  	g_hash_table_destroy ( monitor->backend_msgs );
     2.9    	monitor->backend_msgs = NULL;
    2.10    }
    2.11