From c10ce33302f91896fc2a87c13b00518a4bc26e3a Mon Sep 17 00:00:00 2001 From: Gloria Wang Date: Wed, 15 Jun 2011 10:27:52 -0700 Subject: -Fix some typo -Remove one unnecessary memory allocation Change-Id: Icea21f33d2c7891333e06429d2f382389e5bd27f --- drm/libdrmframework/include/PlugInManager.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drm/libdrmframework/include/PlugInManager.h') 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 getPlugInPathList(const String8& rsDirPath) { Vector 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; } -- cgit v1.1