]> git.sur5r.net Git - glabels/commitdiff
gl_pixbuf_cache_remove_pixbuf(): Bail immediately if name == NULL.
authorJim Evins <evins@snaught.com>
Mon, 22 Sep 2003 02:30:33 +0000 (02:30 +0000)
committerJim Evins <evins@snaught.com>
Mon, 22 Sep 2003 02:30:33 +0000 (02:30 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@300 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/pixbuf-cache.c

index cc2f08e4d27aaa8f80da838d3a479d38ddee3cd6..e1ec24bae2db8cef3dcc8c0413b97369c5ca303d 100644 (file)
@@ -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);