2006-06-08  Lillian Angel  <[EMAIL PROTECTED]>

        * native/plugin/gcjwebplugin.cc:
        (NP_Shutdown): Freed whitelist_filename.



On Thu, 2006-06-08 at 17:45 -0400, Lillian Angel wrote:
> I fixed gcjwebplugin to determine the data directory at runtime, instead
> of when the plugin is installed.
> 
> 2006-06-08  Lillian Angel  <[EMAIL PROTECTED]>
> 
>         * native/plugin/Makefile.am:
>         Removed DATA_DIRECTORY.
>         * native/plugin/gcjwebplugin.cc:
>         Added new global fields for whitelist_file
>         and data_directory. Removed WHITELIST_FILE.
>         (NP_Initialize): Initialized new fields. Also,
>         Changed to use new fields.
>         (NP_Shutdown): Freed data_directory.
>         (GCJ_New): Changed to use new fields.
>         (plugin_ask_user_about_documentbase): Likewise.
> 
Index: native/plugin/gcjwebplugin.cc
===================================================================
RCS file: /cvsroot/classpath/classpath/native/plugin/gcjwebplugin.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- native/plugin/gcjwebplugin.cc	8 Jun 2006 21:43:45 -0000	1.9
+++ native/plugin/gcjwebplugin.cc	8 Jun 2006 21:49:11 -0000	1.10
@@ -1761,6 +1761,12 @@
       g_free (data_directory);
       data_directory = NULL;
     }
+    
+  if (whitelist_filename)
+    {
+      g_free (whitelist_filename);
+      whitelist_filename = NULL;
+    }
   
   initialized = false;
   

Reply via email to