Author: jbevain
Date: 2007-09-27 11:16:28 -0400 (Thu, 27 Sep 2007)
New Revision: 86505
Modified:
trunk/moon/src/playlist.cpp
Log:
no need to ref/unref our own private downloader
Modified: trunk/moon/src/playlist.cpp
===================================================================
--- trunk/moon/src/playlist.cpp 2007-09-27 15:16:27 UTC (rev 86504)
+++ trunk/moon/src/playlist.cpp 2007-09-27 15:16:28 UTC (rev 86505)
@@ -25,7 +25,6 @@
entries = new List ();
current_entry = NULL;
downloader = new Downloader ();
- downloader->ref ();
downloader->SetWriteFunc (on_downloader_data_write,
on_downloader_size_notify, this);
downloader->AddHandler (downloader->CompletedEvent,
on_downloader_complete, this);
element->AddHandler(element->MediaEndedEvent, on_media_ended, this);
@@ -34,7 +33,6 @@
Playlist::~Playlist ()
{
entries->Clear (true);
- downloader->unref ();
delete entries;
delete downloader;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches