~ci-train-bot/unity/unity-ubuntu-disco-3336

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PlacesHomeView.cpp

  • Committer: Neil Jagdish Patel
  • Author(s): Andrea Azzarone
  • Date: 2011-08-01 14:48:36 UTC
  • mfrom: (1323.3.2 fix-779185)
  • Revision ID: neil.patel@canonical.com-20110801144836-ejra78bc6gt5dal0
Fix memory leaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
  // Email
298
298
  markup = gconf_client_get_string(_client, MAIL_DIR"/command", NULL);
299
299
  // get the first word on key (the executable name itself)
300
 
  markup = g_strsplit(markup, " ", 0)[0];
301
 
  CreateShortcutFromExec(markup, _("Check Email"), _email_alternatives);
 
300
  gchar** temp_array = g_strsplit(markup, " ", 0);
302
301
  g_free(markup);
 
302
  CreateShortcutFromExec(temp_array[0], _("Check Email"), _email_alternatives);
 
303
  g_strfreev(temp_array);
303
304
 
304
305
  // Music
305
306
  markup = gconf_client_get_string(_client, MEDIA_DIR"/exec", NULL);