on xenial help sign in
Clean up when we're destroyed
e5e440dTed Gould
plugins/Unity/Indicators/indicatorsmanager.cpp+9
@@ -22,6 +22,7 @@
22#include <QDebug>
22#include <QDebug>
23
23
24#include <upstart.h>
24#include <upstart.h>
25+#include <nih/alloc.h>
25
26
26#include "paths.h"
27#include "paths.h"
27
28
@@ -53,6 +54,14 @@ public:
53 }
54 }
54 }
55 }
55
56
57+ ~IndicatorData ()
58+ {
59+ if (m_upstart != NULL) {
60+ nih_unref(m_upstart, NULL);
61+ m_upstart = NULL;
62+ }
63+ }
64+
56 QString m_name;
65 QString m_name;
57 QFileInfo m_fileInfo;
66 QFileInfo m_fileInfo;
58
67