From: Jim Evins Date: Mon, 22 Sep 2003 02:30:33 +0000 (+0000) Subject: gl_pixbuf_cache_remove_pixbuf(): Bail immediately if name == NULL. X-Git-Tag: glabels-2_3_0~590 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=edfd7d16e33d5a1c03b8cb805dbfdfce5767694d;p=glabels 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 --- 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);