summaryrefslogtreecommitdiffstats
path: root/drm/libdrmframework
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-06-16 10:23:04 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-16 10:23:04 -0700
commitdaeba2d6b9df5252afacec835a23340e5d9910ec (patch)
treef9444c2e3cbffed3691c5e4159b0b0ce2920bf8c /drm/libdrmframework
parent01bded1246cd770b54b8011527f5c29e1b5663e3 (diff)
parentc10ce33302f91896fc2a87c13b00518a4bc26e3a (diff)
downloadframeworks_av-daeba2d6b9df5252afacec835a23340e5d9910ec.zip
frameworks_av-daeba2d6b9df5252afacec835a23340e5d9910ec.tar.gz
frameworks_av-daeba2d6b9df5252afacec835a23340e5d9910ec.tar.bz2
Merge "-Fix some typo -Remove one unnecessary memory allocation"
Diffstat (limited to 'drm/libdrmframework')
-rw-r--r--drm/libdrmframework/include/PlugInManager.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drm/libdrmframework/include/PlugInManager.h b/drm/libdrmframework/include/PlugInManager.h
index 8029138..7bb143f 100644
--- a/drm/libdrmframework/include/PlugInManager.h
+++ b/drm/libdrmframework/include/PlugInManager.h
@@ -202,7 +202,7 @@ private:
Vector<String8> getPlugInPathList(const String8& rsDirPath) {
Vector<String8> fileList;
DIR* pDir = opendir(rsDirPath.string());
- struct dirent* pEntry = new dirent();
+ struct dirent* pEntry;
while (NULL != pDir && NULL != (pEntry = readdir(pDir))) {
if (!isPlugIn(pEntry)) {
@@ -219,8 +219,6 @@ private:
if (NULL != pDir) {
closedir(pDir);
}
- delete pEntry;
- pEntry = NULL;
return fileList;
}