diff options
author | Gloria Wang <gwang@google.com> | 2011-06-15 10:27:52 -0700 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-06-15 17:32:06 -0700 |
commit | c10ce33302f91896fc2a87c13b00518a4bc26e3a (patch) | |
tree | 6a83d35dc96348371134130cc25f08867a2adace /drm/libdrmframework | |
parent | 6771263604cf8e464b5cd1278823b0898af3a2a9 (diff) | |
download | frameworks_av-c10ce33302f91896fc2a87c13b00518a4bc26e3a.zip frameworks_av-c10ce33302f91896fc2a87c13b00518a4bc26e3a.tar.gz frameworks_av-c10ce33302f91896fc2a87c13b00518a4bc26e3a.tar.bz2 |
-Fix some typo
-Remove one unnecessary memory allocation
Change-Id: Icea21f33d2c7891333e06429d2f382389e5bd27f
Diffstat (limited to 'drm/libdrmframework')
-rw-r--r-- | drm/libdrmframework/include/PlugInManager.h | 4 |
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; } |