GESTimelineFileSource: Don't leak strings
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 1 Sep 2010 15:04:26 +0000 (17:04 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 1 Sep 2010 15:04:26 +0000 (17:04 +0200)
ges/ges-timeline-source.c

index c202714bba892506ec267498807a92ffd84ddfc4..4792b56eae35df42e492f3e6d34521c3580c34bf 100644 (file)
@@ -124,6 +124,13 @@ ges_timeline_source_dispose (GObject * object)
 static void
 ges_timeline_source_finalize (GObject * object)
 {
+  GESTimelineSource *source = (GESTimelineSource *) object;
+
+  if (source->text)
+    g_free (source->text);
+  if (source->font_desc)
+    g_free (source->font_desc);
+
   G_OBJECT_CLASS (ges_timeline_source_parent_class)->finalize (object);
 }