]> git.draconx.ca Git - upkg.git/blobdiff - src/engine/palette.gob
Ensure object property references are released.
[upkg.git] / src / engine / palette.gob
index 08d0b786bbec2ce10f8c4a749c53c4706b80880d..ce5745926c773847dc0d9793dea451bd3233855f 100644 (file)
@@ -1,7 +1,7 @@
 %alltop{
 /*
  *  upkg: tool for manipulating Unreal Tournament packages.
- *  Copyright © 2011 Nick Bowler
+ *  Copyright © 2011, 2020 Nick Bowler
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ typedef unsigned char engine_palette_rgba[4];
 class Engine:Palette from U:Object (dynamic)
 {
        public unsigned entries = 0;
-       public engine_palette_rgba *rgba = NULL;
+       public engine_palette_rgba *rgba = NULL destroywith free;
 
        override (U:Object) int deserialize(U:Object *uo)
        {