Re: [gnome] gdome_di_createDocFromMemory Memory Leak
"Gustavo Sverzut Barbieri" <[email protected]> Fri, 17 Nov 2006 20:31:18 -0200
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
On 11/16/06, Himalay Gopu <[email protected]> wrote: > Thanks Gustavo > > We have a function which creates the singleton for every transaction and > processes the XML so this should be causing the leak -- AM I RIGHT weird... how are you creatinga singleton for every transaction? Singletons should be... singletons, single instances. > BTW what are the singleton classes in gdome -- GdomeDOMImplementation > Does making these classes singleton hinder the performance of the > application in threaded environment? the singletons here are just the vtable stuff, used to dispatch the methods. It could be done in other ways, like static or even better gdome guys could use c++ and let compiler does that. -- Gustavo Sverzut Barbieri -------------------------------------- Jabber: [email protected] MSN: [email protected] ICQ#: 17249123 Skype: gsbarbieri Mobile: +55 (81) 9927 0010 Phone: +1 (347) 624 6296; [email protected] GPG: 0xB640E1A2 @ wwwkeys.pgp.net