From f3990f2cc8fd824ae52a880a7b22248e1bdfb192 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Tue, 13 Dec 2011 11:50:00 -0800 Subject: Improve resistance to leaks for ConfigEvent A Vector of pointers is risky, as there is no ownership (and the ThreadBase destructor was not deleting them, so if there were any left over at end it would leak). Replaced by a Vector of values. Change-Id: Iddde72dc30134adfcf724dec26cbe0a742509b8c --- services/audioflinger/AudioFlinger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 6cafa7e..25c60c7 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -547,7 +547,7 @@ private: Condition mParamCond; Vector mNewParameters; status_t mParamStatus; - Vector mConfigEvents; + Vector mConfigEvents; bool mStandby; int mId; bool mExiting; -- cgit v1.1