~ubuntu-branches/ubuntu/utopic/nepomuk-core/utopic

« back to all changes in this revision

Viewing changes to libnepomukcore/resource/nepomukmainmodel.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-26 22:43:09 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120726224309-pf2v1e78ee7uljjp
Tags: 4:4.9.0a-0ubuntu1
* Use direct build-depends versions rather than kde-sc-dev-latest
* New upstream release
* New symbols, rename libnepomukcore4 to libnepomukcore4abi and enable Debian ABI manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        // we may get disconnected from the server but we don't want to try
80
80
        // to connect every time the model is requested
81
81
        if ( forced || (!m_socketConnectFailed && !localSocketClient.isConnected()) ) {
82
 
            delete localSocketModel;
 
82
            // ###### FIXME
 
83
            // Cannot delete the model, other threads might still be using it.
 
84
            // With the API that returns iterators, the only way to do this right would be to
 
85
            // use shared pointers, for refcounting the use of the model.
 
86
            // Meanwhile, better leak (on rare occasions) than crash.
 
87
            //delete localSocketModel;
83
88
            localSocketModel = 0;
84
89
            localSocketClient.disconnect();
85
90
            QString socketName = KGlobal::dirs()->locateLocal( "socket", "nepomuk-socket" );
137
142
      d( new Private(this) )
138
143
{
139
144
    setParent( parent );
140
 
    init();
141
145
}
142
146
 
143
147