~alexlauni/indicator-messages/fix-0-count-lp1071640

« back to all changes in this revision

Viewing changes to libmessaging-menu/messaging-menu.c

  • Committer: Lars Uebernickel
  • Date: 2012-10-11 10:34:29 UTC
  • mto: This revision was merged to the branch mainline in revision 323.
  • Revision ID: lars.uebernickel@canonical.com-20121011103429-38svkfn418j2qrph
libmessaging-menu: clear error before reusing it

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
  if (!id)
191
191
    {
192
192
      g_warning ("unable to export action group: %s", error->message);
193
 
      g_error_free (error);
 
193
      g_clear_error (&error);
194
194
    }
195
195
 
196
196
  id = g_dbus_connection_export_menu_model (bus,
200
200
  if (!id)
201
201
    {
202
202
      g_warning ("unable to export menu: %s", error->message);
203
 
      g_error_free (error);
 
203
      g_clear_error (&error);
204
204
    }
205
205
 
206
206
  g_object_unref (bus);