changeset 13439:11742521716f

[gaim-migrate @ 15814] Resolves CID 75: Event deref_ptr: Directly dereferenced pointer "conference" 75 gaim_debug(GAIM_DEBUG_INFO, "novell", 76 "In release conference %p, refs=%d\n", 77 conference, conference->ref_count); Event check_after_deref: Pointer "conference" dereferenced before NULL check 78 if (conference != NULL && (--conference->ref_count == 0)) { committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Mar 2006 07:24:50 +0000
parents 068282089843
children eb439b15321b
files src/protocols/novell/nmconference.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/novell/nmconference.c	Tue Mar 07 07:23:04 2006 +0000
+++ b/src/protocols/novell/nmconference.c	Tue Mar 07 07:24:50 2006 +0000
@@ -72,10 +72,12 @@
 {
 	GSList *node;
 
+	g_return_if_fail(conference != NULL);
+
 	gaim_debug(GAIM_DEBUG_INFO, "novell",
 			   "In release conference %p, refs=%d\n",
 			   conference, conference->ref_count);
-	if (conference != NULL && (--conference->ref_count == 0)) {
+	if (--conference->ref_count == 0) {
 
 		gaim_debug(GAIM_DEBUG_INFO, "novell",
 				   "Releasing conference %p, total=%d\n",