aboutsummaryrefslogtreecommitdiff
path: root/src/sharedcore.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-09-09 22:58:01 +0000
committerMike Buland <eichlan@xagasoft.com>2009-09-09 22:58:01 +0000
commit69924adf356c4377bef02d4a9a331db24701d188 (patch)
tree75a1b21241e5693f61f760da7d2c815d6ead01f8 /src/sharedcore.h
parent4f6ca21e84eefcca3ad9f88938ecf29c39e24996 (diff)
downloadlibbu++-69924adf356c4377bef02d4a9a331db24701d188.tar.gz
libbu++-69924adf356c4377bef02d4a9a331db24701d188.tar.bz2
libbu++-69924adf356c4377bef02d4a9a331db24701d188.tar.xz
libbu++-69924adf356c4377bef02d4a9a331db24701d188.zip
Fixed a minor assignment bug in shared core, assigning an object to itself was
causing memory corruption, and fbasicstring is playing even nicer with shared core now.
Diffstat (limited to '')
-rw-r--r--src/sharedcore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sharedcore.h b/src/sharedcore.h
index 046e973..3dcdc12 100644
--- a/src/sharedcore.h
+++ b/src/sharedcore.h
@@ -42,6 +42,9 @@ namespace Bu
42 42
43 SharedCore &operator=( const SharedCore &rhs ) 43 SharedCore &operator=( const SharedCore &rhs )
44 { 44 {
45 if( core == rhs.core )
46 return *this;
47
45 _softCopy( rhs ); 48 _softCopy( rhs );
46 return *this; 49 return *this;
47 } 50 }