diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 4 | ||||
-rw-r--r-- | src/empathy-status-icon.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index f8a199ca9..2533d7743 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -386,8 +386,8 @@ call_window_update (EmpathyCallWindow *window) call_window_finalize (window); } - - g_object_unref (contact); + if (contact) + g_object_unref (contact); } GtkWidget * diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 0cafbfdd8..18788fb7d 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -393,6 +393,10 @@ status_icon_call_filter_new_channel (EmpathyFilter *filter, event->user_data = group; g_free (msg); } + + if (contact) { + g_object_unref (contact); + } } static void |