Fix memory leak when viewing plugin options
@@ -200,8 +200,9 @@ PPH_PLUGIN_TREE_ROOT_NODE AddPluginsNode(
pluginNode->PluginInstance = Plugin;
pluginNode->PluginOptions = Plugin->Information.HasOptions;
pluginNode->InternalName = PhCreateString2(&Plugin->Name);
+ if (Plugin->Information.DisplayName)
pluginNode->Name = PhCreateString(Plugin->Information.DisplayName);
- //pluginNode->Author = PhCreateString(Plugin->Information.Author);
+ if (Plugin->Information.Description)
pluginNode->Description = PhCreateString(Plugin->Information.Description);
if (fileName = PhGetPluginFileName(Plugin))
