]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_datetime.i
Applied patch #809019 (Adds embedded/plugin capabilities to wxMac).
[wxWidgets.git] / wxPython / src / _datetime.i
index 1142cb30fb2901fd662e4287923d65eed8aad09b..6a2dfbd7423e2894960ee3e4b59a568060771914 100644 (file)
 //---------------------------------------------------------------------------
 
 
-%typemap(in) wxDateTime::TimeZone& {
+%typemap(in) wxDateTime::TimeZone& (bool temp=False) {
     $1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong($input));
+    temp = True;
 }
 %typemap(python,freearg) wxDateTime::TimeZone& {
-    if ($1) delete $1;
+    if (temp$argnum) delete $1;
 }