[gthumb/gthumb-2-10] Revert earlier change, don't assert fd is not null before unref



commit 1e4744559c81c5d53f314cfb7b7f46ad6f12630a
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Fri May 1 12:27:34 2009 -0400

    Revert earlier change, don't assert fd is not null before unref
    (cherry picked from commit 59ac23d348820cce8966c5ba584194ce9211d14f)
---
 libgthumb/file-data.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libgthumb/file-data.c b/libgthumb/file-data.c
index a95414f..eeb0f95 100644
--- a/libgthumb/file-data.c
+++ b/libgthumb/file-data.c
@@ -149,7 +149,8 @@ file_data_dup (FileData *source)
 void
 file_data_unref (FileData *fd)
 {
-	g_return_if_fail (fd != NULL);	
+	if (fd == NULL)
+		return;
 
 	fd->ref--;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]