[xiph-commits] r8456 -
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Thu Dec 16 08:34:33 PST 2004
Author: illiminable
Date: 2004-12-16 08:34:32 -0800 (Thu, 16 Dec 2004)
New Revision: 8456
Modified:
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/OggDemuxSourceFilter.cpp
Log:
* Fixed bug where if you load the ogg demux but click cancel when selecting a file, then try to delete the filter from the graph when no filter is loaded, it crashes.
Modified: trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/OggDemuxSourceFilter.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/OggDemuxSourceFilter.cpp 2004-12-16 16:21:28 UTC (rev 8455)
+++ trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/OggDemuxSourceFilter.cpp 2004-12-16 16:34:32 UTC (rev 8456)
@@ -155,7 +155,10 @@
//debugLog<<"Deleting Data Source : "<<(int)mDataSource<<endl;
//Close down the data source and delete it
- mDataSource->close();
+
+ if (mDataSource != NULL) {
+ mDataSource->close();
+ }
delete mDataSource;
debugLog.close();
@@ -171,6 +174,7 @@
}
//Delete the seektable
delete mSeekTable;
+ mSeekTable = NULL;
}
//IAMFilterMiscFlags Interface
More information about the commits
mailing list