fix some pulse shutdown magic fails
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 30 Nov 2012 08:49:31 +0000 (08:49 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 30 Nov 2012 08:49:31 +0000 (08:49 +0000)
SVN revision: 79874

src/modules/mixer/sys_pulse.c

index ed91166fafef24b1ce6b557a12d536a2bb5517fd..6fdb4d7f0859fabd42a022204977f25c3d95594e 100644 (file)
@@ -337,11 +337,11 @@ e_mixer_pulse_shutdown(void)
 
    pulse_free(conn);
    conn = NULL;
-   ecore_event_handler_del(ph);
+   if (ph) ecore_event_handler_del(ph);
    ph = NULL;
-   ecore_event_handler_del(pch);
+   if (pch) ecore_event_handler_del(pch);
    pch = NULL;
-   ecore_event_handler_del(pdh);
+   if (pdh) ecore_event_handler_del(pdh);
    pdh = NULL;
    if (dbus_handler)
      {