diff options
author | Deepak Bhole <[email protected]> | 2012-05-23 12:13:03 -0400 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2012-05-23 12:13:03 -0400 |
commit | d63a184ec8eced0e7509dd140a9528fc411709f9 (patch) | |
tree | 41a11a236a0bdb7b110a9ad972d8e920e22a785a /plugin | |
parent | 8a3062dcdeba64c6b61c2c5562b08f4e65bb1327 (diff) |
Use g_mutex_free instead of g_free to free appletviewer_mutex (fixes
crash).
Patch from Martin Olsson.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/icedteanp/IcedTeaNPPlugin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc index 657cf07..a60d2e6 100644 --- a/plugin/icedteanp/IcedTeaNPPlugin.cc +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc @@ -427,7 +427,7 @@ ITNP_New (NPMIMEType pluginType, NPP instance, uint16_t mode, goto cleanup_done; cleanup_appletviewer_mutex: - g_free (data->appletviewer_mutex); + g_mutex_free (data->appletviewer_mutex); data->appletviewer_mutex = NULL; // cleanup_instance_string: @@ -2000,7 +2000,7 @@ plugin_data_destroy (NPP instance) tofree->window_width = 0; // cleanup_appletviewer_mutex: - g_free (tofree->appletviewer_mutex); + g_mutex_free (tofree->appletviewer_mutex); tofree->appletviewer_mutex = NULL; // cleanup_instance_string: |