Show
Ignore:
Timestamp:
04/17/06 09:21:47 (3 years ago)
Author:
jordi
Message:

All setters function from IDocument now frees the argumen after copying it to the attribute. That's because I though that a "double free or invalid pointer" was caused by any of them, but it seems that it was the test code that did pass a const char, when a copy of it should have been passed. This didn't happen on "debug mode"...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/MainPterTest.cxx

    r73 r80  
    112112 
    113113    // Now try a document with a title. 
    114     m_Document->setTitle ("Test PDF"); 
     114    m_Document->setTitle (g_strdup ("Test PDF")); 
    115115    m_MainPter->openFileActivated (); 
    116116    CPPUNIT_ASSERT_EQUAL (0,