Commit a2fa7730 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

region: Fix memleak on error

parent 3ea70200
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment