gnome-scan r805 - in branches/GNOME_SCAN_0_6: . src



Author: bersace
Date: Sat Jan 31 16:19:48 2009
New Revision: 805
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=805&view=rev

Log:
Properly unref created objects

Modified:
   branches/GNOME_SCAN_0_6/ChangeLog
   branches/GNOME_SCAN_0_6/src/flegita-gimp.c

Modified: branches/GNOME_SCAN_0_6/src/flegita-gimp.c
==============================================================================
--- branches/GNOME_SCAN_0_6/src/flegita-gimp.c	(original)
+++ branches/GNOME_SCAN_0_6/src/flegita-gimp.c	Sat Jan 31 16:19:48 2009
@@ -142,7 +142,6 @@
   gdouble xres, yres, res;
 
   /* if we are scanning, create a new image */
-  g_debug (G_STRLOC " " PROCEDURE_SCAN);
   if (g_str_equal (name, PROCEDURE_SCAN)) {
 	  image_ID = 0;
 	  is_new = TRUE;
@@ -168,9 +167,11 @@
   }
 
   gnome_scan_job_set_sink (job, sink);
-  gnome_scan_job_set_settings(job, settings);
   GtkWidget*dialog = gnome_scan_dialog_new (NULL, job);
   gnome_scan_dialog_run (GNOME_SCAN_DIALOG (dialog));
+  g_object_unref(dialog);
+  g_object_unref(job);
+  g_object_unref(sink);
   g_object_unref(settings);
 
   if (is_new && fgs->image_ID) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]