[gnome-settings-daemon/randr-osd: 55/60] Don't return a halfway-built laptop-only configuration in case of error
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/randr-osd: 55/60] Don't return a halfway-built laptop-only configuration in case of error
- Date: Wed, 3 Mar 2010 23:48:51 +0000 (UTC)
commit e96a9192edc950b7b528b043d0da800173c9ef77
Author: Federico Mena Quintero <federico novell com>
Date: Tue Mar 2 14:42:58 2010 -0600
Don't return a halfway-built laptop-only configuration in case of error
Signed-off-by: Federico Mena Quintero <federico novell com>
plugins/xrandr/gsd-xrandr-manager.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 03c008a..8615b6b 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -749,9 +749,8 @@ make_laptop_stock_config (GnomeRRScreen *screen)
if (is_laptop (screen, info)) {
if (!turn_on (screen, info, 0, 0)) {
- gnome_rr_config_free (result);
- result = NULL;
- break;
+ gnome_rr_config_free (rr_config);
+ return NULL;
}
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]