[telepathy-gabble/master] If there is a destroy notify, call it

Sjoerd Simons sjoerd.simons at collabora.co.uk
Fri Dec 18 06:08:35 PST 2009


---
 lib/loudmouth/lm-message-handler.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lib/loudmouth/lm-message-handler.c b/lib/loudmouth/lm-message-handler.c
index c849e6b..f3c3988 100644
--- a/lib/loudmouth/lm-message-handler.c
+++ b/lib/loudmouth/lm-message-handler.c
@@ -40,7 +40,11 @@ lm_message_handler_unref (LmMessageHandler *handler)
   handler->ref_count--;
 
   if (handler->ref_count == 0)
-    g_slice_free (LmMessageHandler, handler);
+    {
+      if (handler->notify != NULL)
+        handler->notify (handler->user_data);
+      g_slice_free (LmMessageHandler, handler);
+    }
 }
 
 LmMessageHandler *
-- 
1.5.6.5




More information about the telepathy-commits mailing list