~kaihengfeng/unity/lp1292830

« back to all changes in this revision

Viewing changes to UnityCore/GnomeSessionManagerImpl.h

GnomeSessionManager: add gcancellable to instance and use it for calls with temporary proxies

This fixes various crashes when the session manager is destroyed while a temporary proxy
call is still in progress, and the callback is called afterwards.

Approved by: Eleni Maria Stea

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
  glib::DBusProxy::Ptr dm_proxy_;
86
86
  glib::DBusProxy::Ptr dm_seat_proxy_;
87
87
 
 
88
  glib::Cancellable cancellable_;
88
89
  int open_sessions_;
89
90
};
90
91