~poelzi/ulatencyd/master

« back to all changes in this revision

Viewing changes to src/uhook.c

  • Committer: Daniel Poelzleithner
  • Date: 2016-07-01 19:42:07 UTC
  • mfrom: (454.5.7)
  • Revision ID: git-v1:45a2fa0e452f548053dfdd3d0456512363a05a06
Merge remote-tracking branch 'origin/0.6.0-alpha.2.x'

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
 
334
334
  g_return_if_fail(type >= 0 && type < U_HOOK_TYPE_COUNT);
335
335
  hook_list = &_hook_lists[type];
336
 
  g_hook_list_clear (hook_list->hooks);
337
 
  g_assert (hook_list->data->ref == 1);
338
 
  DEC_REF (hook_list->data);
 
336
  if (hook_list->hooks)
 
337
    {
 
338
      g_hook_list_clear (hook_list->hooks);
 
339
      g_assert (hook_list->data->ref == 1);
 
340
      DEC_REF (hook_list->data);
 
341
    }
339
342
}
340
343
 
341
344
/**