2008-07-30 Ross Burton <ross@openedhand.com>
authorRoss Burton <ross@openedhand.com>
Wed, 30 Jul 2008 15:01:37 +0000 (15:01 +0000)
committerRoss Burton <ross@openedhand.com>
Wed, 30 Jul 2008 15:01:37 +0000 (15:01 +0000)
* clutter/clutter-main.c:
Destroy the debugging timer when the context is freed.

* clutter/clutter-stage.c:
Free the stage title when the stage is finalized.

ChangeLog
clutter/clutter-main.c
clutter/clutter-stage.c

index 0b1fb1c..282fa17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-30  Ross Burton  <ross@openedhand.com>
+
+       * clutter/clutter-main.c:
+       Destroy the debugging timer when the context is freed.
+
+       * clutter/clutter-stage.c:
+       Free the stage title when the stage is finalized.
+
 2008-07-30  Neil Roberts  <neil@o-hand.com>
 
        * clutter/clutter-model.c (clutter_model_set_sorting_column): This
index 80ca151..54aedbb 100644 (file)
@@ -408,6 +408,10 @@ clutter_context_free (ClutterMainContext *context)
   g_object_unref (context->font_map);
   context->font_map = NULL;
 
+#ifdef CLUTTER_ENABLE_DEBUG
+  g_timer_destroy (context->timer);
+#endif
+  
   /* XXX: The cleaning up of the event queue should be moved here from
           the backend base class. */
 
index b22b9b3..269c421 100644 (file)
@@ -478,6 +478,10 @@ clutter_stage_dispose (GObject *object)
 static void
 clutter_stage_finalize (GObject *object)
 {
+  ClutterStage *stage = CLUTTER_STAGE (object);
+
+  g_free (stage->priv->title);
+  
   G_OBJECT_CLASS (clutter_stage_parent_class)->finalize (object);
 }