[libgdata] calendar: Fix some typos in code examples



commit 9cefc971f8facc88a8597242bc17ae38d22f04c5
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Dec 30 14:10:24 2010 +0000

    calendar: Fix some typos in code examples
    
    Helps: bgo#579885

 gdata/services/calendar/gdata-calendar-calendar.c |    1 +
 gdata/services/calendar/gdata-calendar-query.c    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/calendar/gdata-calendar-calendar.c b/gdata/services/calendar/gdata-calendar-calendar.c
index cd17261..dc27aa8 100644
--- a/gdata/services/calendar/gdata-calendar-calendar.c
+++ b/gdata/services/calendar/gdata-calendar-calendar.c
@@ -51,6 +51,7 @@
  *
  *	if (error != NULL) {
  *		g_error ("Error querying for calendars: %s", error->message);
+ *		g_error_free (error);
  *		return;
  *	}
  *
diff --git a/gdata/services/calendar/gdata-calendar-query.c b/gdata/services/calendar/gdata-calendar-query.c
index 5f61e6f..b8e214b 100644
--- a/gdata/services/calendar/gdata-calendar-query.c
+++ b/gdata/services/calendar/gdata-calendar-query.c
@@ -60,6 +60,7 @@
  *
  *	if (error != NULL) {
  *		g_error ("Error querying for events: %s", error->message);
+ *		g_error_free (error);
  *		return;
  *	}
  *



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