diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-02 14:19:58 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-02 14:19:58 +0000 |
commit | 0d5f9b24a86eb1bdfedf44731d2e5e6f9b9eb024 (patch) | |
tree | 6793bdd418d34e2fda14772cb4f71af859e535a3 /Source/TableContent.m | |
parent | 7fe9e4e54578fb55e5a8a765c92c161ced2a89ba (diff) | |
download | sequelpro-0d5f9b24a86eb1bdfedf44731d2e5e6f9b9eb024.tar.gz sequelpro-0d5f9b24a86eb1bdfedf44731d2e5e6f9b9eb024.tar.bz2 sequelpro-0d5f9b24a86eb1bdfedf44731d2e5e6f9b9eb024.zip |
- Fix an intermittent crasher - occurring most often when sorting tables - by using copies of data store objects when the data store is being updated. This addresses http://log.sequelpro.com/view/20 and http://log.sequelpro.com/view/88
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index f4afb508..a0948f36 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -2718,7 +2718,7 @@ if (isWorking) { pthread_mutex_lock(&tableValuesLock); if (rowIndex < tableRowsCount && columnIndex < [tableValues columnCount]) { - theValue = SPDataStorageObjectAtRowAndColumn(tableValues, rowIndex, columnIndex); + theValue = [[SPDataStorageObjectAtRowAndColumn(tableValues, rowIndex, columnIndex) copy] autorelease]; } pthread_mutex_unlock(&tableValuesLock); |