Changeset 262

Show
Ignore:
Timestamp:
02/23/07 02:34:25 (19 months ago)
Author:
jordi
Message:

Added some g_free calls.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/JobPrint.cxx

    r239 r262  
    408408        m_Document = NULL; 
    409409 
    410         // This array tells us which pages to export to postscrip. 
     410        // This array tells us which pages to export to postscript. 
    411411        int numPages = getDocument ().getNumPages (); 
    412412        m_PageRange = new gboolean[numPages]; 
  • trunk/src/PrintPter.cxx

    r255 r262  
    120120            printerName = g_strdup (printerAndInstanceNames); 
    121121        } 
     122        g_free (printerAndInstanceNames); 
    122123 
    123124        float pageWidth; 
     
    131132        job->setDocument (m_Document); 
    132133        job->setPrinterName (printerName); 
     134        g_free (printerName); 
    133135 
    134136        if ( view.isSelectedAllPagesRangeOption () ) 
     
    141143        else 
    142144        { 
    143             job->setPageRange (view.getPageRange()); 
     145            job->setPageRange (view.getPageRange ()); 
    144146        } 
    145147 
     
    170172 
    171173        IJob::enqueue (job); 
    172  
    173         g_free (printerAndInstanceNames); 
    174         g_free (printerName); 
    175174    } 
    176175    // Once done, it's the same as canceled :-)