All pastes #1406416 Raw Edit

Miscellany

public diff v1 · immutable
#1406416 ·published 2009-04-28 18:26 UTC
rendered paste body
Index: xbmc/FileSystem/cdioSupport.cpp===================================================================--- xbmc/FileSystem/cdioSupport.cpp	(revision 19777)+++ xbmc/FileSystem/cdioSupport.cpp	(working copy)@@ -104,6 +104,8 @@  CLibcdio::~CLibcdio() {+  if (s_defaultDevice)+    free(s_defaultDevice); }  void CLibcdio::RemoveInstance()Index: xbmc/linux/XFileUtils.cpp===================================================================--- xbmc/linux/XFileUtils.cpp	(revision 19777)+++ xbmc/linux/XFileUtils.cpp	(working copy)@@ -261,12 +261,10 @@   result->fd = fd;    // special case for opening the cdrom device-  char *devName = MEDIA_DETECT::CLibcdio::GetInstance()->GetDeviceFileName();-  if (strcmp(lpFileName, devName) == 0)+  if (strcmp(lpFileName, MEDIA_DETECT::CLibcdio::GetInstance()->GetDeviceFileName())==0)     result->m_bCDROM = true;   else     result->m_bCDROM = false;-  free(devName);    // if FILE_FLAG_DELETE_ON_CLOSE then "unlink" the file (delete)   // the file will be deleted when the last open descriptor is closed.