]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/animate/animate.cpp
fix memory leak as Dimitri suggested
[wxWidgets.git] / contrib / src / animate / animate.cpp
index 6a17313299afc558784c355ac3aa234453d73f16..a0bad64e6eed94903d7a22fcd4fe916dae29a768 100644 (file)
@@ -116,7 +116,7 @@ bool wxAnimationPlayer::Build()
                 if (GetTransparentColour(transparentColour))
                     image->SetMaskColour(transparentColour.Red(), transparentColour.Green(), transparentColour.Blue());
 
-                bitmap = new wxBitmap(image->ConvertToBitmap());
+                bitmap = new wxBitmap(* image);
                 delete image;
                 if (bitmap)
                     m_frames.Append(bitmap);