From: Robert Wilhelm (robert.wilhelm@gmx.net)
Date: Sun Sep 21 2003 - 11:24:12 EDT
Martin,
my patch replaces
- m_pMyBrokenContainer = NULL;
with
+ if(m_pMyBrokenContainer)
+ m_pMyBrokenContainer = NULL;
I check first if m_pMyBrokenContainer is not NULL and then
set it to NULL in these cases.
The overall effect is exactly the same as before that all
m_pMyBrokenContainer are NULL afterwards.
The second method is just a bit surprisingly much faster
by avoiding writing NULLs to memory locations which already
have NULL value.
Robert
This archive was generated by hypermail 2.1.4 : Sun Sep 21 2003 - 11:45:01 EDT