Author: pollux
Date: 2006-12-25 19:45:32 +0000 (Mon, 25 Dec 2006)
New Revision: 24188

Modified:
   xfburn/branches/libburn_trial/xfburn/xfburn-blank-cd-dialog.c
   xfburn/branches/libburn_trial/xfburn/xfburn-burn-image-dialog.c
Log:
no more crash but not sure it doesn't leak some mem

Modified: xfburn/branches/libburn_trial/xfburn/xfburn-blank-cd-dialog.c
===================================================================
--- xfburn/branches/libburn_trial/xfburn/xfburn-blank-cd-dialog.c       
2006-12-25 19:05:35 UTC (rev 24187)
+++ xfburn/branches/libburn_trial/xfburn/xfburn-blank-cd-dialog.c       
2006-12-25 19:45:32 UTC (rev 24188)
@@ -162,7 +162,6 @@
   struct burn_drive *drive;
   enum burn_disc_status disc_state;
   struct burn_progress progress;
-  gint ret;
 
   if (!xfburn_device_grab (params->device, &drive_info)) {
     gdk_threads_enter ();
@@ -244,15 +243,11 @@
 
  cleanup:
   burn_drive_release (drive, params->eject ? 1 : 0);
-  while (burn_drive_get_status (drive, &progress) != BURN_DRIVE_IDLE) {
-    DBG ("waiting for release");
-    usleep (500000);
-  }
-  ret = burn_drive_info_forget (drive_info, 1);
-  if (ret != 1)
-    g_error ("Unable to drop drive %s (ret=%d). Please report problem to 
[EMAIL PROTECTED]", params->device->name, ret);
+  /* commented because it unleashes hell 
+  DBG ("drive_info: %p", drive_info);
+  
   burn_drive_info_free (drive_info);
-
+  */
  end:
   g_free (params);
 }

Modified: xfburn/branches/libburn_trial/xfburn/xfburn-burn-image-dialog.c
===================================================================
--- xfburn/branches/libburn_trial/xfburn/xfburn-burn-image-dialog.c     
2006-12-25 19:05:35 UTC (rev 24187)
+++ xfburn/branches/libburn_trial/xfburn/xfburn-burn-image-dialog.c     
2006-12-25 19:45:32 UTC (rev 24188)
@@ -325,17 +325,11 @@
 
  cleanup:
   burn_drive_release (drive, params->eject ? 1 : 0);
-  while (burn_drive_get_status (drive, &progress) != BURN_DRIVE_IDLE) {
-    DBG ("waiting for release");
-    usleep (500000);
-  }
-
+  /* commented because it unleashes hell 
   DBG ("drive_info: %p", drive_info);
-  ret = burn_drive_info_forget (drive_info, 1);
-  if (ret != 1)
-    g_error ("Unable to drop drive %s (ret=%d). Please report problem to 
[EMAIL PROTECTED]", params->device->name, ret);
+  
   burn_drive_info_free (drive_info);
-
+  */
  end:
   burn_track_free (track);
   burn_session_free (session);

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to