]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/regiong.cpp
Try to better revert to the original string value in wxBitmapComboBox::RecreateControl()
[wxWidgets.git] / src / generic / regiong.cpp
index 67190870b9e47034092c89515c9f34aee579dd26..24d24e2bba6d0585189189319c61ecae2c1d03b7 100644 (file)
@@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void)
 
     if (!temp->rects)
     {
-        free((char *) temp);
+        delete temp;
         return (Region) NULL;
     }
     temp->numRects = 0;