修订版 | 9f6b7434578cb14e22128ba0736e0a655b26bb3d (tree) |
---|---|
时间 | 2013-05-20 02:45:01 |
作者 | sdottaka <none@none> |
Commiter | sdottaka |
Fix crash when opening SelectUnpackerDlg
@@ -78,13 +78,15 @@ void CSelectUnpackerDlg::Initialize() | ||
78 | 78 | for (i = 0 ; i < piFileScriptArray->size() ; i++) |
79 | 79 | { |
80 | 80 | // during the dialog, we use a pointer to the scriptsOfThreads array |
81 | - m_UnpackerPlugins.Add(&piFileScriptArray->at(i)); | |
81 | + const PluginInfoPtr& plugin = piFileScriptArray->at(i); | |
82 | + m_UnpackerPlugins.Add(plugin.get()); | |
82 | 83 | m_bWithFileFlags.push_back(true); |
83 | 84 | } |
84 | 85 | for (i = 0 ; i < piBufferScriptArray->size() ; i++) |
85 | 86 | { |
86 | 87 | // during the dialog, we use a pointer to the scriptsOfThreads array |
87 | - m_UnpackerPlugins.Add(&piBufferScriptArray->at(i)); | |
88 | + const PluginInfoPtr& plugin = piBufferScriptArray->at(i); | |
89 | + m_UnpackerPlugins.Add(plugin.get()); | |
88 | 90 | m_bWithFileFlags.push_back(false); |
89 | 91 | } |
90 | 92 | } |