[Goodies-commits] r5040 - in xfburn/trunk: . xfburn

David Mohr squisher at xfce.org
Wed Jul 9 22:00:45 CEST 2008


Author: squisher
Date: 2008-07-09 20:00:45 +0000 (Wed, 09 Jul 2008)
New Revision: 5040

Modified:
   xfburn/trunk/NEWS
   xfburn/trunk/xfburn/xfburn-data-composition.c
Log:
Bugfix: release memory for thread parameters, update README

Modified: xfburn/trunk/NEWS
===================================================================
--- xfburn/trunk/NEWS	2008-07-09 18:45:08 UTC (rev 5039)
+++ xfburn/trunk/NEWS	2008-07-09 20:00:45 UTC (rev 5040)
@@ -12,6 +12,8 @@
 - Use fifo buffering, default is 4MB, adjustable in the preferences
 - Preserve file attributes
 - Now using threads for adding files, and the adding can get aborted
+- If the burning dialog comes up with a full but erasable disc in the drive,
+  prompt to show the blanking dialog
 
 xfburn 0.3.0
 ============

Modified: xfburn/trunk/xfburn/xfburn-data-composition.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-data-composition.c	2008-07-09 18:45:08 UTC (rev 5039)
+++ xfburn/trunk/xfburn/xfburn-data-composition.c	2008-07-09 20:00:45 UTC (rev 5040)
@@ -157,6 +157,8 @@
   gboolean success;
   gboolean del;
   guint32 time;
+
+  void *thread_params;
   
   GtkActionGroup *action_group;
   GtkUIManager *ui_manager;
@@ -699,6 +701,7 @@
     priv->full_paths_to_add = NULL;
   }
 
+  g_free (priv->thread_params);
   xfburn_default_cursor (priv->content);
 }
 
@@ -917,6 +920,7 @@
     
     priv->selected_files = selected_files;
 
+    priv->thread_params = params;
     g_thread_create ((GThreadFunc) thread_add_files_action, params, FALSE, NULL);
     
     g_list_foreach (selected_paths, (GFunc) gtk_tree_path_free, NULL);
@@ -1613,6 +1617,7 @@
     /* append a dummy row so that gtk doesn't freak out */
     gtk_tree_store_append (GTK_TREE_STORE (model), &params->iter_dummy, NULL);
 
+    priv->thread_params = params;
     g_thread_create ((GThreadFunc) thread_add_files_drag, params, FALSE, NULL);
 
     gtk_drag_finish (dc, TRUE, FALSE, t);
@@ -2014,6 +2019,7 @@
     xfburn_adding_progress_show (XFBURN_ADDING_PROGRESS (priv->progress));
     xfburn_busy_cursor (priv->content);
 
+    priv->thread_params = params;
     g_thread_create ((GThreadFunc) thread_add_files_cli, params, FALSE, NULL);
   }
 }




More information about the Goodies-commits mailing list