]> git.draconx.ca Git - upkg.git/blobdiff - src/engine/texture.gob
Ensure object property references are released.
[upkg.git] / src / engine / texture.gob
index 49af5381a37b43c19d9babf16ce11e5ccea77be6..981c89891ab25b499e354a58b4391086e4de828b 100644 (file)
@@ -1,7 +1,7 @@
 %alltop{
 /*
  *  upkg: tool for manipulating Unreal Tournament packages.
- *  Copyright © 2009-2011 Nick Bowler
+ *  Copyright © 2009-2012, 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
@@ -119,8 +119,8 @@ class Engine:Texture from U:Object (dynamic)
 
        private float DrawScale;
 
-       private Engine:Palette *Palette;
-       private Engine:Texture *DetailTexture;
+       private Engine:Palette *Palette = NULL destroywith g_object_unref;
+       private Engine:Texture *DetailTexture = NULL destroywith g_object_unref;
 
        private struct engine_texture_data **mipmap_data;
        private unsigned char mipmap_count;