Commit 19e76bf9 authored by Morten Welinder's avatar Morten Welinder

Leak plugs.

parent 184c44cf
The Excel code is not actually a plugin, despite its position in the
plugins directory. This is for ease of debugging at least initialy.
Simply select an excel file and watch those bits go flying.
For information on the Excel file format simply see:
......
......@@ -1777,7 +1777,7 @@ ms_escher_read_ClientData (MSEscherState *state, MSEscherHeader *h)
/* replace blips we don't know how to handle with rectangles */
if (blip == NULL) {
gtk_object_destroy (obj->gnum_obj);
gtk_object_unref (obj->gnum_obj);
obj->gnum_obj = GTK_OBJECT (sheet_object_box_new (FALSE));
} else if (!sheet_object_bonobo_set_object_iid (sob, blip->obj_id) ||
!sheet_object_bonobo_load_stream (sob, blip->stream))
......
......@@ -2385,6 +2385,8 @@ ms_excel_read_comment (BiffQuery *q, ExcelSheet *sheet)
obj_id, options, hidden, author);
}
#endif
g_free (author);
} else {
guint len = MS_OLE_GET_GUINT16 (q->data+4);
GString *comment = g_string_sized_new (len);
......
......@@ -177,7 +177,7 @@ struct XL_font_width {
};
static void
init_xl_font_widths ()
init_xl_font_widths (void)
{
/* These are the widths in pixels for a 128pt fonts assuming 96dpi
* They were inductively calculated.
......
......@@ -41,9 +41,13 @@
void
ms_destroy_OBJ (MSObj *obj)
{
/* TODO : Fill in the blank */
if (obj)
if (obj) {
/* TODO : Fill in the blank */
if (obj->gnum_obj) {
gtk_object_unref (obj->gnum_obj);
}
g_free (obj);
}
}
/*
......
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