mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-25 16:11:39 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e78d1d1bd9 | ||
|
|
de898fdcaa | ||
|
|
a3e41602cf | ||
|
|
8b00632dd6 | ||
|
|
fa68152b35 |
5
CHANGES
5
CHANGES
@@ -1,3 +1,8 @@
|
|||||||
|
Version 1.0.1 -- 2010/04/19
|
||||||
|
---
|
||||||
|
|
||||||
|
* Fixed memory leak in OS X module.
|
||||||
|
|
||||||
Version 1.0.0 -- 2010/04/07
|
Version 1.0.0 -- 2010/04/07
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ static PyObject* send2trash_osx_send(PyObject *self, PyObject *args)
|
|||||||
|
|
||||||
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
|
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
|
||||||
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
|
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
|
||||||
|
PyMem_Free(utf8_chars);
|
||||||
if (op_result != noErr) {
|
if (op_result != noErr) {
|
||||||
PyErr_SetString(PyExc_OSError, GetMacOSStatusCommentString(op_result));
|
PyErr_SetString(PyExc_OSError, GetMacOSStatusCommentString(op_result));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -21,7 +21,7 @@ if sys.platform == 'win32':
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Send2Trash',
|
name='Send2Trash',
|
||||||
version='1.0.0',
|
version='1.0.1',
|
||||||
author='Hardcoded Software',
|
author='Hardcoded Software',
|
||||||
author_email='hsoft@hardcoded.net',
|
author_email='hsoft@hardcoded.net',
|
||||||
packages=['send2trash'],
|
packages=['send2trash'],
|
||||||
@@ -30,4 +30,6 @@ setup(
|
|||||||
url='http://hg.hardcoded.net/send2trash/',
|
url='http://hg.hardcoded.net/send2trash/',
|
||||||
license='LICENSE',
|
license='LICENSE',
|
||||||
description='Send file to trash natively under Mac OS X, Windows and Linux.',
|
description='Send file to trash natively under Mac OS X, Windows and Linux.',
|
||||||
|
long_description=open('README').read(),
|
||||||
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user