[gnac/devel] Code cleanup
- From: BenoÃt Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Code cleanup
- Date: Fri, 28 Oct 2011 13:18:20 +0000 (UTC)
commit d165d01721a082a7154d6a991702acba3e09fa29
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date: Fri Oct 28 14:18:14 2011 +0100
Code cleanup
src/gnac-ui.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index ab17b88..8f69e1a 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -100,8 +100,10 @@ gnac_ui_file_chooser_unref_filters(void)
static void
gnac_ui_file_chooser_dispose(void)
{
- gnac_ui_file_chooser_unref_filters();
- gtk_widget_destroy(gnac_file_chooser);
+ if (gnac_file_chooser) {
+ gnac_ui_file_chooser_unref_filters();
+ gtk_widget_destroy(gnac_file_chooser);
+ }
}
@@ -1200,7 +1202,7 @@ gnac_ui_destroy(void)
if (main_window) gtk_widget_destroy(main_window);
about_dialog = gnac_ui_get_widget("aboutdialog");
if (about_dialog) gtk_widget_destroy(about_dialog);
- if (gnac_file_chooser) gnac_ui_file_chooser_dispose();
+ gnac_ui_file_chooser_dispose();
g_object_unref(gnac_main_builder);
gnac_main_builder = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]