[gnome-control-center] region: Fix memleak on error
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Fix memleak on error
- Date: Mon, 21 Feb 2011 19:19:14 +0000 (UTC)
commit a2fa77302b59a03b6b7fd3bc309b729d848ef198
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 21 19:16:47 2011 +0000
region: Fix memleak on error
panels/region/cc-region-panel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index dfc31a0..06d57f1 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -104,11 +104,11 @@ cc_region_panel_init (CcRegionPanel * self)
priv->builder = gtk_builder_new ();
gtk_builder_add_from_file (priv->builder,
- GNOMECC_UI_DIR
- "/gnome-region-panel.ui",
+ GNOMECC_UI_DIR "/gnome-region-panel.ui",
&error);
if (error != NULL) {
g_warning ("Error loading UI file: %s", error->message);
+ g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]