aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 2000d5b..a0ab4ff 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -785,10 +785,12 @@ void UnityMenuModel::unregisterAction(UnityMenuAction* action)
char * UnityMenuModelPrivate::fullActionName(UnityMenuAction *action)
{
GSequenceIter *iter;
+ QByteArray bytes;
const gchar *name;
gchar *full_name = NULL;
- name = action->name().toUtf8().constData();
+ bytes = action->name().toUtf8();
+ name = bytes.constData();
iter = g_sequence_get_iter_at_pos (this->items, action->index());
if (!g_sequence_iter_is_end (iter)) {