mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Update the title bar on load/save
Sat May 14 16:36:32 2005 Søren Sandmann <sandmann@redhat.com> * sysprof.c (set_application_title): Update the title bar on load/save * treeviewutils.c, sfile.c: Fix compiler warnings * Makefile.am: define PIXMAPDIR Sat May 14 15:49:52 2005 Søren Sandmann <sandmann@redhat.com> Auto*ify. * TODO: updates * AUTHORS, INSTALL, Makefile.am, NEWS, configure.ac: New files * module/Makefile: New file * module/sysprof-module.c, module/sysprof-module.h: Move these files to their own directy, as the kernel build system does not work very well with auto*. * sysprof.c, autogen.sh: Some auto* changes.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
71db050480
commit
55fd84676f
6
sfile.c
6
sfile.c
@ -1547,8 +1547,10 @@ sfile_output_save (SFileOutput *sfile,
|
||||
GString *output;
|
||||
int indent;
|
||||
gboolean retval;
|
||||
#if 0
|
||||
guchar *compressed;
|
||||
size_t compressed_size;
|
||||
#endif
|
||||
|
||||
g_return_val_if_fail (sfile != NULL, FALSE);
|
||||
|
||||
@ -1606,9 +1608,9 @@ sfile_output_save (SFileOutput *sfile,
|
||||
*/
|
||||
bz2_compress (output->str, output->len,
|
||||
&compressed, &compressed_size);
|
||||
#endif
|
||||
|
||||
g_free (compressed);
|
||||
#endif
|
||||
|
||||
retval = file_replace (filename, output->str, - 1, err);
|
||||
|
||||
@ -1635,7 +1637,7 @@ sfile_output_free (SFileOutput *sfile)
|
||||
int n_instructions;
|
||||
|
||||
n_instructions = sfile->instructions->len;
|
||||
instructions = g_array_free (sfile->instructions, FALSE);
|
||||
instructions = (Instruction *)g_array_free (sfile->instructions, FALSE);
|
||||
|
||||
free_instructions (instructions, n_instructions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user