From edfd7d16e33d5a1c03b8cb805dbfdfce5767694d Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Mon, 22 Sep 2003 02:30:33 +0000 Subject: [PATCH] gl_pixbuf_cache_remove_pixbuf(): Bail immediately if name == NULL. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@300 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/src/pixbuf-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glabels2/src/pixbuf-cache.c b/glabels2/src/pixbuf-cache.c index cc2f08e4..e1ec24ba 100644 --- a/glabels2/src/pixbuf-cache.c +++ b/glabels2/src/pixbuf-cache.c @@ -173,6 +173,8 @@ gl_pixbuf_cache_remove_pixbuf (GHashTable *pixbuf_cache, { CacheRecord *record; + if (name == NULL) return; + gl_debug (DEBUG_PIXBUF_CACHE, "START"); record = g_hash_table_lookup (pixbuf_cache, name); -- 2.39.5