gtkieembed r191 - in trunk: . src
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkieembed r191 - in trunk: . src
- Date: Thu, 22 Jan 2009 06:54:29 +0000 (UTC)
Author: hiikezoe
Date: Thu Jan 22 06:54:29 2009
New Revision: 191
URL: http://svn.gnome.org/viewvc/gtkieembed?rev=191&view=rev
Log:
* src/ie-bridge.cpp, src/gtk-ie-embed.c: Use g_slice_new0 instead of
g_new0.
Modified:
trunk/ChangeLog
trunk/src/gtk-ie-embed.c
trunk/src/ie-bridge.cpp
Modified: trunk/src/gtk-ie-embed.c
==============================================================================
--- trunk/src/gtk-ie-embed.c (original)
+++ trunk/src/gtk-ie-embed.c Thu Jan 22 06:54:29 2009
@@ -799,11 +799,11 @@
g_free (attr->name);
if (attr->value)
g_free (attr->value);
- g_free (attr);
+ g_slice_free (GtkIEEmbedDOMEventTargetAttribute, attr);
}
g_list_free (list);
- g_free (target);
+ g_slice_free (GtkIEEmbedDOMEventTarget, target);
}
gboolean
Modified: trunk/src/ie-bridge.cpp
==============================================================================
--- trunk/src/ie-bridge.cpp (original)
+++ trunk/src/ie-bridge.cpp Thu Jan 22 06:54:29 2009
@@ -951,7 +951,7 @@
if (nodeValue.vt == VT_BSTR && nodeValue.bstrVal) {
utf8_value = g_utf16_to_utf8 ((gunichar2 *) nodeValue.bstrVal, -1, NULL, NULL, NULL);
}
- attr = g_new0 (GtkIEEmbedDOMEventTargetAttribute, 1);
+ attr = g_slice_new0 (GtkIEEmbedDOMEventTargetAttribute);
attr->name = utf8_name;
attr->value = utf8_value;
target_attribute_list = g_list_prepend (target_attribute_list, attr);
@@ -971,7 +971,7 @@
target_element->getAttribute ((OLECHAR *) attr_name, 0, &attr_value);
if (attr_value.vt == VT_BSTR && attr_value.bstrVal) {
gchar *value = NULL;
- attr = g_new0 (GtkIEEmbedDOMEventTargetAttribute, 1);
+ attr = g_slice_new0 (GtkIEEmbedDOMEventTargetAttribute);
attr->name = g_strdup ("href");
value = g_utf16_to_utf8 ((gunichar2 *) attr_value.bstrVal, -1, NULL, NULL, NULL);
if (value)
@@ -988,7 +988,7 @@
GtkIEEmbedDOMEventTarget *target;
BSTR tag_name = NULL;
- target = g_new0 (GtkIEEmbedDOMEventTarget, 1);
+ target = g_slice_new0 (GtkIEEmbedDOMEventTarget);
target_element->get_tagName (&tag_name);
if (tag_name) {
@@ -1013,7 +1013,7 @@
gdk_window_get_pointer (priv->widget->window, &x, &y, &mask);
- event = g_new0 (GtkIEEmbedDOMMouseEvent, 1);
+ event = g_slice_new0 (GtkIEEmbedDOMMouseEvent);
event->x = x;
event->y = y;
@@ -1050,7 +1050,7 @@
if (event->target)
gtk_ie_embed_dom_event_target_free (event->target);
- g_free (event);
+ g_slice_free (GtkIEEmbedDOMMouseEvent, event);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]