Add ui_finalize(), free string (patch by Dimitar Zhekov, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5097 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-07-08 16:59:11 +00:00
parent d05db879d1
commit 2b771854ae
4 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2010-07-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/ui_utils.c, doc/geany.txt, doc/geany.html:
Fix writing empty hidden pref "statusbar_template" key so users can
find it (patch by Dimitar Zhekov, thanks).
* src/ui_utils.c, src/ui_utils.h, src/main.c:
Add ui_finalize(), free string (patch by Dimitar Zhekov, thanks).
2010-07-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-07-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/build.c, src/project.c, src/project.h: * src/build.c, src/project.c, src/project.h:

View File

@ -1161,6 +1161,7 @@ void main_quit()
sidebar_finalize(); sidebar_finalize();
configuration_finalize(); configuration_finalize();
filetypes_free_types(); filetypes_free_types();
ui_finalize();
log_finalize(); log_finalize();
tm_workspace_free(TM_WORK_OBJECT(app->tm_workspace)); tm_workspace_free(TM_WORK_OBJECT(app->tm_workspace));

View File

@ -2060,6 +2060,12 @@ void ui_init(void)
} }
void ui_finalize(void)
{
g_free(statusbar_template);
}
static void auto_separator_update(GeanyAutoSeparator *autosep) static void auto_separator_update(GeanyAutoSeparator *autosep)
{ {
g_return_if_fail(autosep->ref_count >= 0); g_return_if_fail(autosep->ref_count >= 0);

View File

@ -219,6 +219,8 @@ GtkWidget *ui_label_set_markup(GtkLabel *label, const gchar *format, ...) G_GNUC
void ui_init(void); void ui_init(void);
void ui_finalize(void);
void ui_init_toolbar_widgets(void); void ui_init_toolbar_widgets(void);
void ui_init_stock_items(void); void ui_init_stock_items(void);