diff --git a/checkin_notes b/checkin_notes index 2b782c9847..50788aa16e 100755 --- a/checkin_notes +++ b/checkin_notes @@ -4091,6 +4091,7 @@ Erik May 8 2003 and if necessary it draws logo-based graphics or blanks the screen. - Changed ACTIVE_TASK.app_client_shm from a pointer to an object. NOTE: AVOID DYNAMIC ALLOCATION WHENEVER POSSIBLE + - got rid of free_mem() stuff client/ Makefile.in diff --git a/client/app.C b/client/app.C index 240269c0df..e45082fd93 100644 --- a/client/app.C +++ b/client/app.C @@ -445,6 +445,7 @@ int ACTIVE_TASK_SET::insert(ACTIVE_TASK* atp) { return 0; } +#if 0 // Deallocate memory to prevent unneeded reporting of memory leaks // void ACTIVE_TASK_SET::free_mem() { @@ -458,6 +459,7 @@ void ACTIVE_TASK_SET::free_mem() { delete at; } } +#endif // Checks if any child processes have exited and records their final CPU time // diff --git a/client/app.h b/client/app.h index e17ed0d851..031f8f4220 100644 --- a/client/app.h +++ b/client/app.h @@ -138,7 +138,6 @@ public: void kill_tasks(); void check_apps(); int get_free_slot(int total_slots); - void free_mem(); // screensaver-related functions ACTIVE_TASK* get_graphics_capable_app(); diff --git a/client/client_state.C b/client/client_state.C index 93206d0456..b8af4a7ac7 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -95,6 +95,7 @@ CLIENT_STATE::CLIENT_STATE() { cpu_benchmarks_id = 0; } +#if 0 // Deallocate memory to prevent unneeded reporting of memory leaks // void CLIENT_STATE::free_mem() { @@ -155,6 +156,7 @@ void CLIENT_STATE::free_mem() { active_tasks.free_mem(); } +#endif void CLIENT_STATE::install_global_prefs() { net_xfers->max_bytes_sec_up = global_prefs.max_bytes_sec_up; diff --git a/client/client_state.h b/client/client_state.h index 4a96fa9f95..3ef6aa8823 100644 --- a/client/client_state.h +++ b/client/client_state.h @@ -59,7 +59,6 @@ public: NET_STATS net_stats; CLIENT_STATE(); - void free_mem(); int init(); int restart_tasks(); int cleanup_and_exit();