View Single Post
Old 28 November 2017, 22:43   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,021
You are mixing open and close.

If open fails, then nothing happens. You have to ensure yourself that everything you allocated before you detect the failure is freed.

Close will only be called if open succeeded. Close should expunge the library only if a previous call to expunge failed because the library was still opened.
thomas is offline  
 
Page generated in 0.04872 seconds with 11 queries