on xenial help sign in
Clean up when we're destroyed
commite5e440dd662f2a281aeb6ffbbde0fa994844d746 authorTed Gould <ted@gould.cx> dateWed 7 Aug 2013, 09:57 (13 years ago) parent9a701bc
1 file changed+9
plugins/Unity/Indicators/indicatorsmanager.cpp+9
plugins/Unity/Indicators/indicatorsmanager.cpp+9
@@ -22,6 +22,7 @@
2222#include <QDebug>
2323
2424#include <upstart.h>
25+#include <nih/alloc.h>
2526
2627#include "paths.h"
2728
@@ -53,6 +54,14 @@ public:
5354 }
5455 }
5556
57+ ~IndicatorData ()
58+ {
59+ if (m_upstart != NULL) {
60+ nih_unref(m_upstart, NULL);
61+ m_upstart = NULL;
62+ }
63+ }
64+
5665 QString m_name;
5766 QFileInfo m_fileInfo;
5867