summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/ppb_flash_shared.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/shared_impl/ppb_flash_shared.cc')
-rw-r--r--ppapi/shared_impl/ppb_flash_shared.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/shared_impl/ppb_flash_shared.cc b/ppapi/shared_impl/ppb_flash_shared.cc
index c0504bf..e78392c 100644
--- a/ppapi/shared_impl/ppb_flash_shared.cc
+++ b/ppapi/shared_impl/ppb_flash_shared.cc
@@ -12,6 +12,14 @@ PPB_Flash_Shared::PPB_Flash_Shared() {
PPB_Flash_Shared::~PPB_Flash_Shared() {
}
+void PPB_Flash_Shared::FreeDirContents(PP_Instance instance,
+ PP_DirContents_Dev* contents) {
+ for (int32_t i = 0; i < contents->count; ++i)
+ delete[] contents->entries[i].name;
+ delete[] contents->entries;
+ delete contents;
+}
+
// static
bool PPB_Flash_Shared::IsValidClipboardType(
PP_Flash_Clipboard_Type clipboard_type) {