[gnome-color-manager] trivial: Fix a tiny memory leak in an error path



commit 0172d5a7d8a8a04da22832eaf51129be99fb3598
Author: Richard Hughes <richard hughsie com>
Date:   Fri Nov 27 09:39:50 2009 +0000

    trivial: Fix a tiny memory leak in an error path

 src/gcm-inspect.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-inspect.c b/src/gcm-inspect.c
index ffecc7f..3870038 100644
--- a/src/gcm-inspect.c
+++ b/src/gcm-inspect.c
@@ -114,6 +114,7 @@ gcm_inspect_show_x11_atoms (void)
 	if (rr_screen == NULL) {
 		ret = FALSE;
 		egg_warning ("failed to get rr screen: %s", error->message);
+		g_error_free (error);
 		goto out;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]