~ubuntu-branches/ubuntu/utopic/unity-mir/utopic-proposed

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/application_manager.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Gerry Boland
  • Date: 2014-03-11 15:21:41 UTC
  • mfrom: (1.1.47)
  • Revision ID: package-import@ubuntu.com-20140311152141-fjtcgxxk7hqpvbqa
Tags: 0.3+14.04.20140311.2-0ubuntu1
[ Gerry Boland ]
ApplicationManager instance is owned & managed by the QML engine.
Wrapping it with QSharedPointer causes shutdown crash due to double
deletion. Resolve by removing the shared pointer wrapping. I tried
specifying C+ownership of the ApplicationManager object to the
QmlEngine, but it did not work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    class Factory
64
64
    {
65
65
    public:
66
 
        QSharedPointer<ApplicationManager> create();
 
66
        ApplicationManager* create();
67
67
    };
68
68
    // Mapping enums to Ubuntu Platform API enums.
69
69
    enum Flag {