desktop: fixed segfault issue in StringSync
commit92365dcedd037678087dc55bd91335ea4fbc05cc
authorChris Frey <cdfrey@foursquare.net>
Fri, 30 Mar 2012 18:50:50 +0000 (30 14:50 -0400)
committerChris Frey <cdfrey@foursquare.net>
Fri, 30 Mar 2012 19:20:22 +0000 (30 15:20 -0400)
tree5c33454a625a471d433f5817022a4aa969c8677f
parentd2b67c4f180ce82754a68aa6c923c12d753d39f1
desktop: fixed segfault issue in StringSync

It is not safe to call Sync() from StringSync's destructor, since if
the destructor is being called as the result of a parent class's
destructor, then we have no guarantee that the external strings
still exist.

This commit removes the destructor call and adds documentation for
this issue.
desktop/src/StringSync.cc
desktop/src/StringSync.h