To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=68951
                 Issue #|68951
                 Summary|osl: leak in osl::Directory::getNextItem
               Component|porting
                 Version|OOo 2.0.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mh
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Fri Aug 25 02:08:21 -0700 
2006 -------
This code leaks memory...

#include <sal/typesizes.h>
#include <sal/types.h>
#include <osl/file.hxx>

int main(void)
{
        rtl::OUString sPath(rtl::OUString::createFromAscii("file:///tmp"));
        osl::Directory aDir( sPath );

        aDir.open();
        osl::DirectoryItem aItem;
        aDir.getNextItem( aItem );
        aDir.getNextItem( aItem );
        aDir.close();
        return 0;
}

Patch attached to fix

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to