X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=9934650f753173d935459d8b13dc00f7b83a9d09;hb=b33f1968ccf98a334e4fbab169ecf4e7bc90401f;hp=1c33deb66375d930e42c891f98017114e73cffcc;hpb=74c0f7de91268e40d15948f473eac51a9760b9c0;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; }