aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-12-08 00:24:42 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-12-08 00:24:42 +0800
commita22a4c17a5796ed4aa4249f6154b7d3321bd6709 (patch)
tree0ff4b2d36582a13a251907672720728c4f30702e
parentdbd0b894c29ae2903b97dab4ee920badea62f074 (diff)
downloadgsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.gz
gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.zst
gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.zip
Free the xmlDoc when we are done with it. (e_table_state_save_to_file):
2000-12-07 Federico Mena Quintero <federico@helixcode.com> * e-table-state.c (e_table_state_save_to_string): Free the xmlDoc when we are done with it. (e_table_state_save_to_file): Ditto. * e-table.c (e_table_get_state): Unref the state object; why was it being sunk instead? (e_table_save_state): Ditto. (e_table_load_state): Ditto. (e_table_set_state): Ditto. * e-table-header-item.c (ethi_destroy): Free the ethi->dnd_code. svn path=/trunk/; revision=6837
-rw-r--r--widgets/table/e-table-header-item.c8
-rw-r--r--widgets/table/e-table-state.c2
-rw-r--r--widgets/table/e-table.c8
3 files changed, 13 insertions, 5 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 932846b6a0..2c13ef3dcc 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -85,12 +85,18 @@ ethi_destroy (GtkObject *object){
ethi_drop_table_header (ethi);
- if (ethi->sort_info){
+ if (ethi->dnd_code) {
+ g_free (ethi->dnd_code);
+ ethi->dnd_code = NULL;
+ }
+
+ if (ethi->sort_info) {
if (ethi->sort_info_changed_id)
gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->sort_info_changed_id);
if (ethi->group_info_changed_id)
gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->group_info_changed_id);
gtk_object_unref (GTK_OBJECT(ethi->sort_info));
+ ethi->sort_info = NULL;
}
if (GTK_OBJECT_CLASS (ethi_parent_class)->destroy)
diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c
index 9361f4f940..36c7293267 100644
--- a/widgets/table/e-table-state.c
+++ b/widgets/table/e-table-state.c
@@ -117,6 +117,7 @@ e_table_state_save_to_file (ETableState *state,
doc = xmlNewDoc("1.0");
xmlDocSetRootElement(doc, e_table_state_save_to_node(state, NULL));
xmlSaveFile(filename, doc);
+ xmlFreeDoc(doc);
}
char *
@@ -130,6 +131,7 @@ e_table_state_save_to_string (ETableState *state)
doc = xmlNewDoc(NULL);
xmlDocSetRootElement(doc, e_table_state_save_to_node(state, NULL));
xmlDocDumpMemory(doc, &string, &length);
+ xmlFreeDoc(doc);
ret_val = g_strdup(string);
xmlFree(string);
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index e55e9ee010..271884ea14 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -777,7 +777,7 @@ void e_table_set_state (ETable *e_table
if (state->col_count > 0)
e_table_set_state_object(e_table, state);
- gtk_object_sink(GTK_OBJECT(state));
+ gtk_object_unref(GTK_OBJECT(state));
}
void e_table_load_state (ETable *e_table,
@@ -795,7 +795,7 @@ void e_table_load_state (ETable *e_table
if (state->col_count > 0)
e_table_set_state_object(e_table, state);
- gtk_object_sink(GTK_OBJECT(state));
+ gtk_object_unref(GTK_OBJECT(state));
}
ETableState *
@@ -834,7 +834,7 @@ gchar *e_table_get_state (ETable *e_table
state = e_table_get_state_object(e_table);
string = e_table_state_save_to_string(state);
- gtk_object_sink(GTK_OBJECT(state));
+ gtk_object_unref(GTK_OBJECT(state));
return string;
}
@@ -845,7 +845,7 @@ void e_table_save_state (ETable *e_table
state = e_table_get_state_object(e_table);
e_table_state_save_to_file(state, filename);
- gtk_object_sink(GTK_OBJECT(state));
+ gtk_object_unref(GTK_OBJECT(state));
}
static void
/td>1-2/+0 * Add tarsnap 1.0.24, the client code to the tarsnap secure online backupcperciva2009-07-051-0/+1 * - Remove security/metasploit. It is now BSD licensed and freely distributable.wxs2009-06-161-1/+0 * Remove expired ports in audio:erwin2009-06-131-12/+0 * Petite Chez Scheme is a complete Scheme system that is fully compatiblebeat2009-05-221-0/+1 * Update p4v to 2008.2.200026.scf2009-05-211-1/+1 * A Command Line Interface for the MegaRAID SAS family of RAID controllers,pgollucci2009-05-201-0/+1 * - Add restriction of www/mod_h264_streaminglwhsu2009-05-191-0/+1 * - Add lang/fsharppgj2009-05-101-0/+2 * - Restore festival+OGImiwi2009-05-051-0/+3 * 2009-04-28 audio/festival+OGI: unmaintained, does not work with current versi...miwi2009-05-051-3/+0 * - Mark as RESTRICTED. The License is limited to non-commercial use.araujo2009-04-081-0/+3 * 2009-03-22 mbone/nte: tcl8.0 support is going to be droppedmiwi2009-03-241-1/+0 * 2009-01-19 games/emacs-chess: has been broken for more than 6 monthsmiwi2009-02-041-1/+0 * LSI Logic MegaRAID SAS MegaCLI Releasepgollucci2009-01-191-0/+1 * Add audio/xmms-wavpack: Intended to be "free", but no actual licensingnaddy2009-01-121-0/+1 * Add entry for archivers/kziplioux2009-01-091-0/+1 * - Add chinese/CNS11643-fontchinsan2009-01-031-0/+2 * - Add entry for games/linux-sofmiwi2008-12-261-0/+1 * 2008-10-19 x11-wm/flwm: Project is dead, and uses obsolete version of fltkmiwi2008-12-081-1/+0 * Add entry for ksh93 ports.wxs2008-11-051-0/+1 * - Remove checkpassword entry since DJB's license had changed.garga2008-07-281-1/+0 * - Update for ssamtsepav2008-07-271-1/+1 * GSView is covered by the AFPL license.ale2008-07-211-0/+1 * - Add entry for games/linux-ssamtfemiwi2008-07-201-0/+1 * - Add entry for games/linux-unrealgoldmiwi2008-07-201-0/+1 * - Add entry for games/linux-etqw-demo-servermiwi2008-07-201-1/+2 * - Add games/linux-etqw-serve - Redistribution is limitedmiwi2008-07-201-0/+1 * Update the licensing conditions of Aqua Data Studio.thierry2008-04-201-3/+4 * Add an entry for databases/sqldeveloper.thierry2008-04-061-3/+5 * - csound has been liberatedpav2008-04-041-5/+0 * - Add entry for benchmarks/nttcpjadawin2008-03-311-0/+1 * - Remove duplicate entryjadawin2008-03-191-1/+0 * - Add entry for biology/clustalwjadawin2008-03-191-0/+2 * - Add entry for ventrilo-serverpav2008-03-131-0/+4 * Usual round of cleanups:danfe2008-03-011-160/+203 * 2007-12-12 net-im/wildfire: Use net-im/openfire instead of this portmiwi2008-02-281-2/+0 * 2007-10-31 www/vtiger4: This version is no longer supported by the developersmiwi2008-02-281-1/+0 * Add a note about vpncehaupt2008-02-281-0/+1 * - Add entry for science/dtiquerytabthorpe2008-02-251-0/+1 * Add LEGAL entry for komodo-editarved2008-02-141-0/+1 * - Add an entry for math/rapidtabthorpe2008-02-091-0/+1 * Add en entry for multimedia/vtkmpeg2encode.thierry2008-01-101-0/+3 * - Add RESTRICTED as the license doesn't allow binary redistributionlme2008-01-011-0/+1 * - Add entry for devel/thistest.alepulver2007-12-251-0/+1 * Command Line Interface for the Adaptec SCSI RAID family of RAID controllers,pav2007-12-201-0/+1 * Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder.pav2007-12-151-0/+1 * Add netscape navigator and messenger.sat2007-12-151-0/+2 * Remove qmail since license has changed.garga2007-12-121-2/+0 * Add entries about ports/java/linux-sun-jre15 and ports/java/linux-sun-jre16.jkim2007-10-271-0/+4 * Add an entry about ports/textproc/scim-kmfl-sil-ipa-unicode5garga2007-10-251-0/+5 * Remove expired leaf ports:vd2007-10-121-1/+0 * - Add entry about games/linux-nerogameacm2007-10-061-0/+2 * - Add entry for emulators/win4bsd.alepulver2007-10-031-0/+1 * 2007-01-04 print/clibpdf: distfile and homepage disappearedtabthorpe2007-10-011-8/+0 * Remove print/ghostscript-afpl as it has been replaced by print/ghostscript-gplrafan2007-09-241-1/+0 * Add an entry about net-mgmt/send: Not redistributable, license agreement requ...edwin2007-09-231-0/+1 * 2007-08-22 java/jdk11-doc: Obsolete version of jdkmiwi2007-09-191-2/+0 * 2007-09-15 x11-wm/obtuner: broken with recent Openbox and the project is not ...miwi2007-09-181-2/+0 * - Update to 3.0.6miwi2007-09-141-1/+0 * - Add games/linux-savage-samuraiwars entryacm2007-09-101-1/+3 * - Update to 3.7.3trasz2007-09-061-1/+0 * Command-line encoder that outputs aacPlus v2 files (ie. Advanced Audio Coding +pav2007-07-291-0/+1 * - security/metasploit is updated to 3.0rafan2007-07-231-1/+1 * - Add entry for audio/libamrwb (No redistribution allowed).miwi2007-06-071-1/+2 * - Add entry for audio/libamrnb (No redistribution allowed).miwi2007-06-071-0/+1 * Add notes about:miwi2007-06-051-0/+3 * Add dlv to LEGAL, no information about redistributionarved2007-06-021-0/+1