diff options
author | Gloria Wang <gwang@google.com> | 2011-06-16 10:23:04 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-16 10:23:04 -0700 |
commit | daeba2d6b9df5252afacec835a23340e5d9910ec (patch) | |
tree | f9444c2e3cbffed3691c5e4159b0b0ce2920bf8c /drm/libdrmframework | |
parent | 01bded1246cd770b54b8011527f5c29e1b5663e3 (diff) | |
parent | c10ce33302f91896fc2a87c13b00518a4bc26e3a (diff) | |
download | frameworks_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.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; } |