Commit 39971fc6 authored by Christian Persch's avatar Christian Persch Committed by Christian Persch

Use nsMemory::Alloc, for gecko 1.7 compatibility.

2006-08-11  Christian Persch  <chpe@cvs.gnome.org>

	* browser-plugin/totemBasicPlugin.cpp:
	* browser-plugin/totemComplexPlugin.cpp:
	* browser-plugin/totemGMPPlugin.cpp:
	* browser-plugin/totemNarrowSpacePlugin.cpp:

	Use nsMemory::Alloc, for gecko 1.7 compatibility.
parent d6c94378
2006-08-11 Christian Persch <chpe@cvs.gnome.org>
* browser-plugin/totemBasicPlugin.cpp:
* browser-plugin/totemComplexPlugin.cpp:
* browser-plugin/totemGMPPlugin.cpp:
* browser-plugin/totemNarrowSpacePlugin.cpp:
Use nsMemory::Alloc, for gecko 1.7 compatibility.
2006-08-11 Christian Persch <chpe@cvs.gnome.org>
* autogen.sh:
......
Plugin:
- get info about play state, URL etc back from viewer to the plugin
- support all <embed> and <object> attributes that the legacy plugins support
- there still seem to be some unnecessary symbols exported in the plugin .so's
GMP plugin:
- write IDL files (where [_not_ MSDN !] to find documentation?)
......
......@@ -99,7 +99,7 @@ NS_IMETHODIMP
totemScriptablePlugin::GetInterfaces (PRUint32 *count,
nsIID * **array)
{
*array = NS_STATIC_CAST (nsIID**, NS_Alloc (sizeof (nsIID)));
*array = NS_STATIC_CAST (nsIID**, nsMemory::Alloc (sizeof (nsIID)));
if (!*array)
return NS_ERROR_OUT_OF_MEMORY;
......
......@@ -97,7 +97,7 @@ NS_IMETHODIMP
totemScriptablePlugin::GetInterfaces (PRUint32 *count,
nsIID * **array)
{
*array = NS_STATIC_CAST (nsIID**, NS_Alloc (sizeof (nsIID)));
*array = NS_STATIC_CAST (nsIID**, nsMemory::Alloc (sizeof (nsIID)));
if (!*array)
return NS_ERROR_OUT_OF_MEMORY;
......
......@@ -106,7 +106,7 @@ NS_IMETHODIMP
totemScriptablePlugin::GetInterfaces (PRUint32 *count,
nsIID * **array)
{
*array = NS_STATIC_CAST (nsIID**, NS_Alloc (sizeof (nsIID)));
*array = NS_STATIC_CAST (nsIID**, nsMemory::Alloc (2 * sizeof (nsIID)));
if (!*array)
return NS_ERROR_OUT_OF_MEMORY;
......
......@@ -97,7 +97,7 @@ NS_IMETHODIMP
totemScriptablePlugin::GetInterfaces (PRUint32 *count,
nsIID * **array)
{
*array = NS_STATIC_CAST (nsIID**, NS_Alloc (sizeof (nsIID)));
*array = NS_STATIC_CAST (nsIID**, nsMemory::Alloc (sizeof (nsIID)));
if (!*array)
return NS_ERROR_OUT_OF_MEMORY;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment