X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aba610e77a19ce35ca45bb235bbe3ea68cff9916..a9b456ff08a33913d3021420c49cff52896e1513:/src/mac/carbon/taskbar.cpp diff --git a/src/mac/carbon/taskbar.cpp b/src/mac/carbon/taskbar.cpp index bc0330d2f8..bce496ab28 100644 --- a/src/mac/carbon/taskbar.cpp +++ b/src/mac/carbon/taskbar.cpp @@ -19,13 +19,11 @@ #include "wx/dcmemory.h" #include "wx/menu.h" #include "wx/toplevel.h" + #include "wx/icon.h" #endif #include "wx/mac/private.h" -#include "wx/icon.h" - - class wxTaskBarIconImpl { public: @@ -237,7 +235,7 @@ pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef, // When SetEventParameter is called it will decrement // the reference count of the menu - we need to make // sure it stays around in the wxMenu class here - RetainMenu(hMenu); + CFRetain(hMenu); // set the actual dock menu err = SetEventParameter(