X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=9934650f753173d935459d8b13dc00f7b83a9d09;hb=8f33ee4940b9c35bf4627b7ef1126d03748da646;hp=1c33deb66375d930e42c891f98017114e73cffcc;hpb=aca666256c715771b11d3277e10ff971aea44af8;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 1c33deb6..9934650f 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -370,8 +370,7 @@ inline static void FreeBitmapPointers(Bitmap *bitmap) X11FreeBitmapPointers(bitmap); #endif - if (bitmap->source_filename) - free(bitmap->source_filename); + checked_free(bitmap->source_filename); bitmap->source_filename = NULL; }