summaryrefslogtreecommitdiff
path: root/SpiceXPI
diff options
context:
space:
mode:
authorPeter Hatina <phatina@redhat.com>2012-04-03 08:46:58 +0200
committerPeter Hatina <phatina@redhat.com>2012-04-03 08:46:58 +0200
commitc488472179d8c4a171968aee439a9bb2685a93df (patch)
tree5f1f77d43feb0d64bf6289070ec91e8a5beae6ad /SpiceXPI
parent7642bb5bac11cb13fa69fc09e246389de0ce31c0 (diff)
initialize nsPluginInstance
Diffstat (limited to 'SpiceXPI')
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index 5596609..8df91e3 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -185,15 +185,20 @@ void NS_DestroyPluginInstance(nsPluginInstanceBase *aPlugin)
nsPluginInstance::nsPluginInstance(NPP aInstance):
nsPluginInstanceBase(),
m_pid_controller(-1),
+ m_connected_status(-2),
m_instance(aInstance),
- m_initialized(PR_FALSE),
+ m_initialized(PR_TRUE),
+ m_window(NULL),
+ m_fullscreen(PR_FALSE),
+ m_smartcard(PR_FALSE),
+ m_admin_console(PR_FALSE),
+ m_no_taskmgr_execution(PR_FALSE),
+ m_send_ctrlaltdel(PR_TRUE),
m_scriptable_peer(NULL)
{
// create temporary directory in /tmp
char tmp_dir[] = "/tmp/spicec-XXXXXX";
m_tmp_dir = mkdtemp(tmp_dir);
-
- m_connected_status = -2;
}
nsPluginInstance::~nsPluginInstance()
@@ -225,6 +230,9 @@ NPBool nsPluginInstance::init(NPWindow *aWindow)
m_dynamic_menu.clear();
m_number_of_monitors.clear();
m_guest_host_name.clear();
+ m_hot_keys.clear();
+ m_language.clear();
+ m_trust_store_file.clear();
m_color_depth.clear();
m_disable_effects.clear();