diff options
author | rbuj <[email protected]> | 2020-03-06 22:52:47 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-07 12:33:31 +0100 |
commit | a270eaa5178246c183ef8e681229b25dc8aff0d2 (patch) | |
tree | 413c0ddbb4e7f2f0c6165046e318d01e03a7fd87 | |
parent | 98441d4e31563b407b61905f3f125e51c22f9aba (diff) | |
download | mate-power-manager-a270eaa5178246c183ef8e681229b25dc8aff0d2.tar.bz2 mate-power-manager-a270eaa5178246c183ef8e681229b25dc8aff0d2.tar.xz |
Remove warning use of memory after it is freed
-rw-r--r-- | src/egg-idletime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egg-idletime.c b/src/egg-idletime.c index 486acd3..c3eb899 100644 --- a/src/egg-idletime.c +++ b/src/egg-idletime.c @@ -330,8 +330,8 @@ egg_idletime_alarm_free (EggIdletime *idletime, EggIdletimeAlarm *alarm) if (alarm->xalarm) XSyncDestroyAlarm (idletime->priv->dpy, alarm->xalarm); g_object_unref (alarm->idletime); - g_free (alarm); g_ptr_array_remove (idletime->priv->array, alarm); + g_free (alarm); return TRUE; } |