Re: Help, problem with gnumeric/python
- From: hellan acm org (Jon Kåre Hellan)
- To: gnumeric-list gnome org, andrzej sci kun nl
- Cc:
- Subject: Re: Help, problem with gnumeric/python
- Date: Wed, 18 Aug 2004 11:42:50 +0200
The plugin works without crashing in HEAD. We fixed a bug in memory
lifecycle handling in January. The fix is easy to apply to 1.2.13. See
the attached patch.
You can also try 1.3.1, which already has the fix. It also has much
improved graphing.
Excellent work, by the way.
Regards
Jom Kåre
Index: py-gnumeric.c
===================================================================
RCS file: /cvs/gnome/gnumeric/plugins/python-loader/py-gnumeric.c,v
retrieving revision 1.34
diff -u -r1.34 py-gnumeric.c
--- py-gnumeric.c 12 Nov 2003 19:10:34 -0000 1.34
+++ py-gnumeric.c 18 Aug 2004 09:33:09 -0000
@@ -474,7 +474,7 @@
static void
py_Boolean_object_dealloc (py_Boolean_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -565,7 +565,7 @@
static void
py_CellPos_object_dealloc (py_CellPos_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -676,7 +676,7 @@
static void
py_Range_object_dealloc (py_Range_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -758,7 +758,7 @@
static void
py_CellRef_object_dealloc (py_CellRef_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -829,7 +829,7 @@
static void
py_RangeRef_object_dealloc (py_RangeRef_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -1071,8 +1071,9 @@
static void
py_MStyle_object_dealloc (py_MStyle_object *self)
{
- mstyle_unref (self->mstyle);
- free (self);
+ if (self)
+ mstyle_unref (self->mstyle);
+ PyObject_Del (self);
}
static PyObject *
@@ -1261,7 +1262,7 @@
static void
py_Cell_object_dealloc (py_Cell_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -1517,7 +1518,7 @@
static void
py_Sheet_object_dealloc (py_Sheet_object *self)
{
- free (self);
+ PyObject_Del (self);
}
PyObject *
@@ -1663,7 +1664,7 @@
static void
py_Workbook_object_dealloc (py_Workbook_object *self)
{
- free (self);
+ PyObject_Del (self);
}
PyObject *
@@ -1745,7 +1746,7 @@
}
static PyObject *
-py_Gui_object_getattr (py_Workbook_object *self, gchar *name)
+py_Gui_object_getattr (py_Gui_object *self, gchar *name)
{
static struct PyMethodDef methods [] = {
{ (char *) "get_workbook", (PyCFunction) py_Gui_get_workbook,
@@ -1759,9 +1760,9 @@
}
static void
-py_Gui_object_dealloc (py_Workbook_object *self)
+py_Gui_object_dealloc (py_Gui_object *self)
{
- free (self);
+ PyObject_Del (self);
}
PyObject *
@@ -1823,9 +1824,11 @@
static void
py_GnumericFunc_object_dealloc (py_GnumericFunc_object *self)
{
- gnm_func_unref (self->fn_def);
- g_free (self->eval_pos);
- free (self);
+ if (self) {
+ gnm_func_unref (self->fn_def);
+ g_free (self->eval_pos);
+ }
+ PyObject_Del (self);
}
static PyObject *
@@ -1908,7 +1911,7 @@
static void
py_GnumericFuncDict_object_dealloc (py_GnumericFuncDict_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
@@ -2042,7 +2045,7 @@
static void
py_GnmPlugin_object_dealloc (py_GnmPlugin_object *self)
{
- free (self);
+ PyObject_Del (self);
}
static PyObject *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]