Index: webkit/glue/plugins/pepper_file_chooser.cc |
diff --git a/webkit/glue/plugins/pepper_file_chooser.cc b/webkit/glue/plugins/pepper_file_chooser.cc |
index 07524e9a46c01f605a529cd337caeb3bf87f3946..17425dcd00db30b0e51b5071955ee3160f37f27e 100644 |
--- a/webkit/glue/plugins/pepper_file_chooser.cc |
+++ b/webkit/glue/plugins/pepper_file_chooser.cc |
@@ -118,8 +118,10 @@ void FileChooser::StoreChosenFiles(const std::vector<std::string>& files) { |
next_chosen_file_index_ = 0; |
std::vector<std::string>::const_iterator end_it = files.end(); |
for (std::vector<std::string>::const_iterator it = files.begin(); |
- it != end_it; it++) |
- chosen_files_.push_back(new FileRef(module(), FilePath().AppendASCII(*it))); |
+ it != end_it; it++) { |
+ chosen_files_.push_back(make_scoped_refptr( |
+ new FileRef(module(), FilePath().AppendASCII(*it)))); |
+ } |
if (!completion_callback_.func) |
return; |