assetfilesource: Fix some leaks
authorThibault Saunier <thibault.saunier@collabora.com>
Sat, 29 Dec 2012 17:10:11 +0000 (14:10 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Sat, 29 Dec 2012 22:38:31 +0000 (19:38 -0300)
ges/ges-asset-file-source.c

index be39ff2..3001a3b 100644 (file)
@@ -145,9 +145,9 @@ _request_id_update (GESAsset * self, gchar ** proposed_new_id, GError * error)
         *proposed_new_id = g_file_get_uri (new_file);
 
         g_object_unref (new_file);
-        g_object_unref (parent);
         g_free (basename);
       }
+      g_object_unref (parent);
     }
 
     g_object_unref (file);
@@ -287,7 +287,7 @@ ges_asset_filesource_set_info (GESAssetFileSource * self,
       type = GES_TRACK_TYPE_VIDEO;
     }
 
-    GST_DEBUG_OBJECT (self, "Creating AsserTrackFileSource for stream: %s",
+    GST_DEBUG_OBJECT (self, "Creating GESAssetTrackFileSource for stream: %s",
         gst_discoverer_stream_info_get_stream_id (sinf));
     _create_track_file_source_asset (self, sinf, type);
   }